mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
Update Simpson's_1-3rd_rule.c
This commit is contained in:
parent
03a0e01950
commit
8692d53d98
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user