Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_03 practice 2(ii)
PROGRAM AMS4 IMPLICIT NONE REAL::T,Y,Z,H,F,DY,K(4),X(0:1000),W(0:1000) INTEGER::I,N PRINT*,'ENTER THE VALUE OF T:' READ*,T PRINT*,'ENTER THE VALUE OF Y:' READ*,Y PRINT*,'ENTER THE VALUE OF Y(T):' READ*,Z PRINT*,'ENTER THE VALUE OF STEP SIZE :' READ*,H N=INT((Z-T)/H) X(0)=T W(0)=Y DO I = 1,3 K(1)=H*F(X(I-1),W(I-1)) K(2)=H*F(X(I-1)+H/2,W(I-1)+K(1)/2) K(3)=H*F(X(I-1)+H/2,W(I-1)+K(2)/2) K(4)=H*F(X(I-1)+H,W(I-1)+K(3)) W(I)=W(I-1)+(K(1)+2*K(2)+2*K(3)+K(4))/6 X(I)=T+I*H PRINT*, I,X(I),W(I) END DO DO I= 4,N X(I)=T+I*H W(I)=(W(I-1)+(H/720)*(251*(1-(X(I))**2)+646*F(X(I-1),W(I-1))-264*F(X(I-2),W(I-2))+106*F(X(I-3),W(I-3))-19*F(X(I-4),W(I-4))))/(1-251*(H/720)) PRINT*,I,X(I),W(I) PRINT*,'THE ESTIMATE VALUE OF Y AT T IS:',W(I) END DO END PROGRAM AMS4 REAL FUNCTION F(T,Y) REAL::T,Y F=Y-T**2.0+1.0 END FUNCTION F
run
|
edit
|
history
|
help
0
রাবেয়া সরকার রিমা 💙💚💛
Practice 4
problem_2
underoverflow
A_01 CHEBYSHEV_METHOD
Check identity matrix or not?
Finding trace
Practice cheby
euler-cromer
A_04 GUASSIAN QUADRATURE METHOD