Sorry for asking again about the compatibility between ifort and pgf90, as I did in previous posts about the log function (viewtopic.php?f=4&t=7365) and the power operator (viewtopic.php?f=4&t=7371), but I also found differences in the results returned by the tand function (tangent in degrees). For val1 results match, but for val2 don't.
Please, refer to that posts where I explain why I need the same results even if the differences are so small in one particular calculation.
System: Intel Core i7 7820x, Linux CentOS 7.5.1804
Compilers: Intel Fortran 18.104.22.1681 (ifort), PGI Fortran 19.10-0 (pgf90)
Compilation: Intel -> ifort -o tand.ifort tand.f90; PGI -> pgf90 -o tand.pgf90 tand.f90 -tp=px -Kieee
Code: Select all
program calctand real :: val1, val2 val1 = -10.8127498626708984375 val2 = -7.10521984100341796875 write(*,'(A,F30.20)') 'val1: ', tand(val1) write(*,'(A,F30.20)') 'val2: ', tand(val2) end program calctand