First commit

This commit is contained in:
2026-04-08 20:11:20 +02:00
parent 10fe469c10
commit 79f15536a1
861 changed files with 135610 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#include <iostream>
using namespace std;
float Interpolation(float yb, float ya, float alpha) {
float yc;
yc = alpha * yb + (1 - alpha) * ya;
return yc;
}
float CalculAlpha(float xa, float xb, float xc) {
float alpha;
alpha = (xc - xa)/(xb - xa);
return alpha;
}
int main() {
float xa, ya, xb, yb, xc, yc;
float alpha;
cout << "Saisir xa, ya, xb, yb, xc" << endl;
cin >> xa >> ya >> xb >> yb >> xc;
alpha = CalculAlpha(xa, xb, xc);
yc = Interpolation(yb, ya, alpha);
cout << "yc vaut " << yc << endl;
}