Post Reply 
HP-71B: 1^Inf Error
06-10-2023, 02:40 PM
Post: #20
RE: HP-71B: 1^Inf Error
(06-10-2023 01:47 PM)EdS2 Wrote:  I notice IEEE floating point specifies the result of 0 × ∞ as NaN.
If 1^x is computed as exp(log(1)*x) then that would be the same.

IEEE goal is not always mathematically correct.
It tried to avoid NaN if possible, with a default numerical value to (hopefully) simplify code.

https://www.open-std.org/jtc1/sc22/wg14/...eV5.10.pdf

page 182 Wrote:pow(x,0) is specified to return 1 for any x, because there are significant applications where 1 is
more useful than NaN. pow(f(t),g(t)) approaches 1 in all cases where f and g are analytic
functions and g(t) approaches zero. The result 1 better supports applications where the second
argument is integral. pow(NAN,0) returns 1.0 on the general principle that if a result is independent
of the numerical value of an argument, then that result is appropriate if that argument is a NaN.

(06-09-2023 11:38 PM)rprosperi Wrote:  I think this proves that Infinity is even, right?

Yes!

page 180 Wrote:The result of pow(–2,∞) is +∞, because all large positive floating-point values are even integers.

--> pow(-1, ∞) = pow(1, ∞) = 1

Again, this is not mathematically sound, but only for "convenience"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-71B: 1^Inf Error - J-F Garnier - 06-09-2023, 08:17 AM
RE: HP-71B: 1^Inf Error - anetzer - 06-09-2023, 08:58 AM
RE: HP-71B: 1^Inf Error - Gilles - 06-09-2023, 10:06 AM
RE: HP-71B: 1^Inf Error - anetzer - 06-09-2023, 11:22 AM
RE: HP-71B: 1^Inf Error - Albert Chan - 06-09-2023, 11:56 AM
RE: HP-71B: 1^Inf Error - J-F Garnier - 06-09-2023, 01:03 PM
RE: HP-71B: 1^Inf Error - Albert Chan - 06-09-2023, 02:22 PM
RE: HP-71B: 1^Inf Error - Werner - 06-09-2023, 12:21 PM
RE: HP-71B: 1^Inf Error - rprosperi - 06-09-2023, 11:38 PM
RE: HP-71B: 1^Inf Error - Werner - 06-10-2023, 08:55 AM
RE: HP-71B: 1^Inf Error - rprosperi - 06-10-2023, 12:11 PM
RE: HP-71B: 1^Inf Error - Albert Chan - 06-09-2023, 02:42 PM
RE: HP-71B: 1^Inf Error - J-F Garnier - 06-09-2023, 03:31 PM
RE: HP-71B: 1^Inf Error - Gilles - 06-09-2023, 03:45 PM
RE: HP-71B: 1^Inf Error - Guenter Schink - 06-09-2023, 06:44 PM
RE: HP-71B: 1^Inf Error - EdS2 - 06-09-2023, 07:32 PM
RE: HP-71B: 1^Inf Error - C.Ret - 06-10-2023, 10:50 AM
RE: HP-71B: 1^Inf Error - Gilles - 06-10-2023, 12:08 PM
RE: HP-71B: 1^Inf Error - EdS2 - 06-10-2023, 01:47 PM
RE: HP-71B: 1^Inf Error - Albert Chan - 06-10-2023 02:40 PM
RE: HP-71B: 1^Inf Error - Valentin Albillo - 06-10-2023, 06:29 PM
RE: HP-71B: 1^Inf Error - Werner - 06-11-2023, 09:09 AM
RE: HP-71B: 1^Inf Error - J-F Garnier - 06-11-2023, 10:20 AM



User(s) browsing this thread: 2 Guest(s)