Advertisement
Oppaceted

Untitled

Apr 5th, 2023
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. module bebebe
  3. implicit none
  4. contains
  5. !Let fx=f(x),fxp=(f(x))',fxpp=(f(x))"
  6. real(8) function fx(x)
  7.    real(8) x
  8.    fx= x**3 + 5*x**2 - 15*x - 7
  9. end function fx
  10. !
  11. real(8) function fxp(x)
  12.    real(8) x
  13.    fxp= 3*x**2 + 10*x - 15
  14. end function fxp
  15. !
  16. real(8) function fxpp(x)
  17.    real(8) x
  18.   fxpp= 6*x + 10
  19. end function fxpp
  20. !
  21. end module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement