[Cfp-interest 1222] rootn

Fred J. Tydeman tydeman at tybor.com
Wed Nov 28 12:40:21 PST 2018


IEEE-754 (2019)

rootn (+INF, n) is +INF for n > 0
rootn (-INF, n) is -INF for odd n > 0
rootn (-INF, n) is qNaN and signals the invalid operation exception for even n > 0
rootn (+INF, n) is +0 for n < 0
rootn (-INF, n) is -0 for odd n < 0
rootn (-INF, n) is qNaN and signals the invalid operation exception for even n < 0.


CFP TS 18661-4 (after N2309)

-- rootn(+INF, n) is +INF for n > 0.
-- rootn(-INF, n) is -INF for odd n > 0.
-- rootn(-INF, n) is qNaN and raises the "invalid" floating-point exception for even n > 0.
-- rootn(+INF, n) is +0 for n < 0.
-- rootn(-INF, n) is -0 for odd n < 0.
-- rootn(-INF, n) is qNaN and raises the "invalid" floating-point exception for even n < 0.

They match.


---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list