[Cfp-interest] compound, rootn, pown
Fred J. Tydeman
tydeman at tybor.com
Thu Jun 21 20:25:25 PDT 2018
On Thu, 21 Jun 2018 12:01:18 -0500 Rajan Bhakta wrote:
>
> Fred: Recheck 'Functions and infinity' issues with 754 draft 238.
>
compound -
754 is missing overflow and underflow
cfp is missing:
754: compound(+/-0,n) is 1
754: compound(+inf,n) is +inf for n>0
754: compound(+inf,n) is +0 for n<0
754: compound(qNaN,n) is qNaN for n!=0
rootn -
replace cfp rootn(+/-inf,n) with
754: rootn(+inf,n) is +inf for n>0
754: rootn(+inf,n) is +0 for n<0
754: rootn(-inf,n) is -inf for odd n>0
754: rootn(-inf,n) is -0 for odd n<0
754: rootn(-inf,n) is qNaN and "invalid" for even n>0
754: rootn(-inf,n) is qNaN and "invalid" for even n<0
rootn( 1, n ) is 1 for all n; special case missing from both
rootn( 1, 0 ): is it covered by rootn(1,n) or rootn(x,0)?
cfp: consider changing (including NaN) to (including 1 or NaN) for rootN(x,0)
pown -
replace cfp pown(+/-inf,n) with
754: pown(+inf,n) is +inf for n>0
754: pown(+inf,n) is +0 for n<0
754: pown(-inf,n) is -inf for odd n>0
754: pown(-inf,n) is +inf for even n>0
754: pown(-inf,n) is -0 for odd n<0
754: pown(-inf,n) is +0 for even n<0
---
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