fortran exp function code example Example: fortran exp function program test_exp real :: x = 1.0 x = exp(x) end program test_exp