Merge pull request #98 from viditkulshreshtha/patch-1

Update Simpson's_1-3rd_rule.c
This commit is contained in:
Christian Bender 2017-12-24 15:09:25 +01:00 committed by GitHub
commit 34e9ba11d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ void main()
x=a+i*h; x=a+i*h;
s2=s2+f(x); s2=s2+f(x);
} }
intgral=(h/3.0)*(sum+2*s2+4*s3); intgeral=(h/3.0)*(sum+2*s2+4*s3);
printf("\nvalue of the integral =%9.4f\n",integral); printf("\nvalue of the integral =%9.4f\n",integral);
getch(); getch();
} }