Program main
Implicit None
Real :: a
Real :: b
Real :: x
x = 3.0
a = -1.0/74.0
b = 1.1
Write(*,*) a**b
End Program main
fcode 发表于 2015-11-10 20:33
由于浮点数是有误差的。所以指数很难确保是奇数。负数开方,在实数域内无解。你需要用复数来解决。
参考帖 ...
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |