Post Reply 
Error with exp function and imaginary numbers
07-28-2020, 03:51 PM
Post: #5
RE: Error with exp function and imaginary numbers
Thank you very much for your reply, Albert Chan.
The error is related to the sin and cos functions. Using your example, in "CAS" mode my HP PRIME G2 (firmware 20200121) gives the following result:

cos(-1e49 mod (2 * Pi)) --> 5.26072423308e214

evidently incorrect result, since the cosine of a real variable returns numbers between -1 and 1. The bug is evident only in the HP PRIME G2 calculator (the "physical" version, so to speak, with firmware 20200121) and only in "CAS" mode.
It seems that with the G1-version of HP PRIME the error is not present (see Major's reply)!
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 - robmio - 07-28-2020 03:51 PM



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