Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_01 NEWTON_RM(B(I))
PROGRAM NR IMPLICIT NONE REAL::X,Y(1000),TOL,F INTEGER::N,I,A Y(0)=0.3 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)=0.5*(Y(I)+A/Y(I)) PRINT*,I,Y(I+1) IF(ABS(Y(I+1)-Y(I))<TOL)THEN WRITE(*,40)Y(I+1) 40 FORMAT('SQUARE 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**2.0-A END FUNCTION F
run
|
edit
|
history
|
help
0
Backward
রাবেয়া সরকার রিমা 💙💚💛
Fyyh
gauss seidel and jacobi
Formatted Output 001
Jacobi
Pivot
A_01 NEWTON_R_M(B(I))
euler-cromer
Practice 4 I