Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
simpsonova for
!gfortran, gcc version 5.4.0 20160609 program simpson h=0.1 !korak z=0.0 !integral funkcije suman=0.0 !suma neparnih tocaka sumap=0.0 !suma parnih tocaka a=1.0 !prva tocka intervala b=1.8 !krajnja tocka intervala x=a+h !prva neparna tocka y=a+2*h !prva parna tocka n=(0.8/h)/2 !broj neparnih iova m=(0.8/h)/2-1 !broj parnih iova !forumla z=(b-a)/(3n)((f(a)+4*suma f(neparnih iova)+2*suma(parnih iova)+f(b)) do i=1,n !suma neparnih iova suman=suman+cosh(x) x=x+2*h !iduca neparna tocka intervala end do do j=1,m !suma parnih iova sumap=sumap+cosh(y) y=y+2*h !iduca parna tocka intervala end do z=((b-a)/(3*(m+n+1)))*(cosh(a)+4*suman+2*sumap+cosh(b)) print *, z end program simpson
run
|
edit
|
history
|
help
0
Forward
first
Gauss pivot elimination
Practice 2(I)
A_02 JACOBIAN NEWTON'S ITERATIVE METHOD
fucugigugug
FIND A DAY
We subroutine
New3
ANIRUDDHA