Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Practice 2(I) second time
PROGRAM ABS4 IMPLICIT NONE REAL::T,Y,Z,H,F,DY,K(4),X(0:1000),W(0:1000),A 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)=A 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/24*(55*F(X(I-1),W(I-1))-59*F(X(I-2),W(I-2))+F(X(I-3),W(I-3))-9*F(X(I-4),W(I-4))) PRINT*,'THE ESTIMATE VALUE OF Y AT T IS:',W(I) END DO END PROGRAM ABS4 REAL FUNCTION F(T,Y) REAL::T,Y F=Y-T**2.0+1.0 END FUNCTION F
run
|
edit
|
history
|
help
0
euler-cromer
A
Title
SIUM(3.5)
Q1
s
divisibility rule
Gauss for
Adams-Bashforth Method for four step
A_02 Newton's practice