Update Simpson's_1-3rd_rule.c

This commit is contained in:
viditkulshreshtha 2017-11-02 14:47:02 +05:30 committed by GitHub
parent 03a0e01950
commit 8692d53d98
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;
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);
getch();
}