Post Reply 
Error with exp function and imaginary numbers
07-28-2020, 02:48 PM
Post: #4
RE: Error with exp function and imaginary numbers
Hi, robmio

What do you get for exp(-1e49) ?
If result underflowed to 0, the bug might be the cos/sin part

exp(-1e49 - 1e49*i)
= exp(-1e49) * exp(-1e49*i)
= 10 ^ (-1e49/ln(10)) * (cos(-1e49) + i * sin(-1e49))


BTW, cos(-1e49) required more digits of pi than HP Prime provided

cos(-1e49 mod (2 pi)) ≈ cos(2.736405887658145) ≈ -0.919028791855494
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Error with exp function and imaginary numbers - Albert Chan - 07-28-2020 02:48 PM



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