[Cfp-interest 1963] hypot()

Fred J. Tydeman tydeman at tybor.com
Sun Apr 11 05:32:52 PDT 2021


On Thu, 25 Mar 2021 08:45:23 -0600 Rajan Bhakta wrote:
>
>      Fred: Write up CFP 1930 as a proposal.

Attached.


---
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.

-------------- next part --------------

   Submitter:CFP group
   Submission Date: 2021-??-??
   Document: WG14 N26??
   Title: N26??: hypot()
   Reference Documents:WG14 N2596, CFP 1930

   Summary: hypot() has an incorrect special case and is missing a
   special case.

   These page numbers are for N2596.

   Page 458, F.10.4.4 The hypot functions:

   Change

     --- hypot(x, +/-0) is equivalent to fabs(x).

   to

     --- hypot(x, +/-0) [DEL: is equivalent to fabs(x) :DEL] [INS:
     returns the absolute value of x, if x is not a NaN :INS] .

   Add

     [INS: --- hypot(x, NaN) returns NaN, if x is not +/-infinity :INS]

   to


More information about the Cfp-interest mailing list