Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_01 NEWTON_RM(B(II))
PROGRAM NR IMPLICIT NONE REAL::X,Y(1000),TOL,F INTEGER::N,I,A Y(0)=0.1 PRINT*,'INPUT A POSITIVE INTEGER:' READ*,A PRINT*,'ENTER THE VALUE OF N AND TOL:' READ*, N,TOL DO I=0,N,1 Y(I+1)=(1.0/3.0)*(2.0*Y(I)+(A/(Y(I))**2.0)) PRINT*,I,Y(I+1) IF(ABS(Y(I+1)-Y(I))<TOL)THEN WRITE(*,40)Y(I+1) 40 FORMAT('CUBE ROOT OF A IS :',F8.4) STOP END IF END DO END PROGRAM NR REAL FUNCTION F(X) IMPLICIT NONE REAL::X INTEGER::A F=X**3.0-A END FUNCTION F
run
|
edit
|
history
|
help
0
A_02 GUASSIAN_ELIMINATION METHOD
Shooting
9
FIND A DAY
A_01 FIXED_POINT_IM(II)
euler-cromer
A_01 QN:1(I)
NEWTON SECOND LAW
trapezna for
Pivot 2