Skip to content
Snippets Groups Projects
Commit 616c5b20 authored by simon.cirilli's avatar simon.cirilli
Browse files

petite mise à jour

parent 66207fbe
Branches
No related tags found
No related merge requests found
No preview for this file type
......@@ -39,8 +39,8 @@ int main() {
point p = findBestDroite(v);
printf("Sol Analytique : a: %f b: %f\n",p.x,p.y);
point drt;
drt.x=3;
drt.y=3;
drt.x=6;
drt.y=12;
p = descenteGradient(0.0001,drt,v);
printf("Sol Numérique : a: %f b: %f\n",p.x,p.y);
......
No preview for this file type
......@@ -50,7 +50,7 @@ point descenteGradient(double precision, point drt, vector pts){
}
gradientx = gradientx * 2;
gradienty += drt.y * pts.length;
gradienty += pt.y * pts.length;
gradienty = gradienty * 2;
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment