Post Reply 
HP-71B: 1^Inf Error
06-09-2023, 02:42 PM
Post: #9
RE: HP-71B: 1^Inf Error
To be more correct, sign(Im(acos(z))) = sign(-Im(z))

Here is Kahan's acos(z) implementation.
https://www.hpmuseum.org/forum/thread-13...#pid151453

lua> z = I.new(2,0)
lua> a = I.sqrt(1+z)
lua> b = I.sqrt(1-z)
lua> x2 = atan(b:real() / a:real()) * 2
lua> y2 = asinh(a:real()*b:imag() - a:imag()*b:real())
lua> I.new(x2, copysign(y2, -z:imag()))      -- = acos(2+0j)
(0-1.3169578969248166*I)
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: 1 Guest(s)