You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, keyboard flaked out there, hence the open-and-close...
Anyhow, was looking at some math functions like sqrtf() and noticed some oddness / inconsistencies that I thought was worth asking about at the very least. In particular, in sqrtf for example, there is:
None of these are consistent with the FORTRAN values I assume the concepts are based on. For example:
PROGRAM SOME_F64_CONSTANTS
DOUBLE PRECISION ONE, ZERO
PARAMETER ( ONE =1.0D+0, ZERO =0.0D+0 )
DOUBLE PRECISION EPS, SFMIN, SMALL, BIG
INTRINSIC EPSILON, HUGE, TINY
EPS =EPSILON(ZERO)
SFMIN =TINY(ZERO)
SMALL = ONE /HUGE(ZERO)
BIG =HUGE(ONE)
PRINT*, " EPS =", EPS
PRINT*, "SFMIN =", SFMIN
PRINT*, "SMALL =", SMALL
PRINT*, " BIG =", BIG
END PROGRAM SOME_f64_CONSTANTS
spits out:
EPS = 2.2204460492503131E-016
SFMIN = 2.2250738585072014E-308
SMALL = 5.5626846462680035E-309
BIG = 1.7976931348623157E+308
Not sure how big the impact of this is, but I suspect it's not zero?
The text was updated successfully, but these errors were encountered:
Sorry, keyboard flaked out there, hence the open-and-close...
Anyhow, was looking at some math functions like
sqrtf()
and noticed some oddness / inconsistencies that I thought was worth asking about at the very least. In particular, in sqrtf for example, there is:while in pow there is:
None of these are consistent with the FORTRAN values I assume the concepts are based on. For example:
spits out:
Not sure how big the impact of this is, but I suspect it's not zero?
The text was updated successfully, but these errors were encountered: