Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function funImpl (valorX, valorY, aproxraiz, h) result (res)   
  2.     implicit none
  3.     real (kind = 8) :: res, valorX, valorY, aproxraiz, h, funcion
  4.    
  5.     !res = valorY + h * (0.0152_8 * aproxraiz * (1._8 - (aproxraiz / 100000._8))) - aproxraiz
  6.     res = valorY + h * (0.005_8 * log ((100000._8) / aproxraiz) * aproxraiz) - aproxraiz
  7. end function funImpl
  8.  
  9. function derFunImp (valorX, valorY, aproxraiz, h) result (res)
  10.     implicit none
  11.     real (kind = 8) :: res, valorX, valorY, aproxraiz, h, k, k2, funcion
  12.    
  13.     !res = h * (aproxraiz * (-19._8 / 6250000._8) + 19._8 / 2500._8) - 1._8
  14.     res = h * (0.005_8 * log (100000._8 / aproxraiz) - 0.005_8) - 1._8
  15. end function derFunImp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement