Fortran 新手(今天才开始),自然对数有问题:
PROGRAM log
IMPLICIT NONE
REAL :: x
PRINT *, "Enter a number:"
READ *, x
x = log (x)
PRINT *, "The natural log of x is:", x
END PROGRAM log
编译器不断抛出错误:
x = log (x)
1
Error: Symbol at (1) is not appropriate for an expression
其他内在函数工作正常。我究竟做错了什么?