Reputation: 223
When I do:
REAL FUNCTION f(x)
REAL, INTENT(IN) :: x
f = exp(-x)
END FUNCTION f
it works but if I do:
REAL FUNCTION f(x)
REAL, INTENT(IN) :: x
f = exp(-x^2)
END FUNCTION f
I get an error:
Error: Syntax error in argument list at (1)
but I need the x^2
function not the x
. What to do?
Upvotes: 1
Views: 274