Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- real function minimum(a, b, func) ! Returns the minimum
- ! value of the function func(x) in the interval (a,b)
- real, intent(in) :: a, b
- interface
- real function func(x)
- real, intent(in) :: x
- end function func
- end interface
- real :: f,x
- :
- f = func(x)
- ! invocation of the user function.
- :
- end function minimum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement