masscomp@soma.UUCP (Stan Barber, Moderator) (08/06/86)
If you use exponentials in your FORTRAN code, you should avoid
linking in floating point hardware support. The functions will return
garbage if the exponet is any larger than 2.
Here is a test program you can verify with:
program powtest
integer exponet
real base
real result
base = 2.0
do 10 exponet=1,10
result = base**exponet
print *,base,'**',exponet,'=',result
10 continue
end
This problem does not occur when using the pow function in c.
Masscomp has been notified.
Stan
--
Stan uucp:{shell,rice,drillsys}!soma!sob Opinions expressed here
Olan domain:sob@rice.edu or sob@soma.bcm.tmc.edu are ONLY mine &
Barber CIS:71565,623 BBS:(713)660-9252 noone else's.