Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A_01 CHEBYSHEV_METHOD
PROGRAM CHEBYSHEV_METHOD IMPLICIT NONE REAL::F,G,H,TOL INTEGER::N,I REAL, DIMENSION(1000)::X PRINT*,'INPUT THE VALUE OF N:' READ*,N PRINT*,'INPUT THE TOLERANCE:' READ*,TOL X(0)=2.0 N=1 DO WHILE(N<I) X(N+1)=X(N)-(F(X(N))/G(X(N)))-(1/2)*((F(X(N))**2 * H(X(N)))/( G(X(N))**3)) IF (ABS(X(N+1)-X(N))<TOL)THEN PRINT*,'THE REAL ROOT IS:',X(N+1) STOP END IF N=N+1 END DO END PROGRAM CHEBYSHEV_METHOD REAL FUNCTION F(X) IMPLICIT NONE REAL::X F=X**3.0-2.0*X-5.0 END FUNCTION F REAL FUNCTION G(X) IMPLICIT NONE REAL::X G=3.0*X**2.0-2.0 END FUNCTION G REAL FUNCTION H(X) IMPLICIT NONE REAL::X H=6.0*X END FUNCTION H
run
|
edit
|
history
|
help
0
A_03 practice 2(ii)
Backward
Question 01(a)
A_02 GUASSIAN_ELIMINATION METHOD
my_first_code
divisibility rule
Fixed point for several variables
Quardratic equation solve
Sudoku
ANIRUDDHA