WP 34S and 31S bugs and fixes
|
05-23-2017, 12:19 PM
(This post was last modified: 05-23-2017 12:24 PM by Dieter.)
Post: #281
|
|||
|
|||
RE: WP 34S and 31S bugs and fixes
(05-23-2017 12:00 PM)Briancady413 Wrote: I calculated e^(i*Pi) and got a real component of -1(as should be) plus a tiny imaginary component, which I believe shouldn't be there. This is not a bug, it is the correct result. Remember: pi is an irrational number with infinitely many digits. But your calculator uses only 16 resp. 34 digits, so you cannot enter pi, you can only enter a close approximation. The first 16 (or 34) digits are all you can provide. So you do not calculate e^(i*pi) but e^(i*3,141592653589793). The imaginary part of this is approx. pi – 3,141592653589793 so that you get i * 2,3846...E–16. Or switch to double precision and get i * –1,158...E–34. The same happens if you try to calculate sin(pi). You won't get zero but again a very tiny residual. That's again because you do not calculate sin(pi) but sin(3,141592653589793) which is 2,3846 E–16. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)