|
| From: | anonymous |
| Subject: | [Octave-bug-tracker] [bug #51952] Incorrect result for computation of |
| Date: | Wed, 6 Sep 2017 10:29:37 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?51952>
Summary: Incorrect result for computation of
Project: GNU Octave
Submitted by: None
Submitted on: Wed 06 Sep 2017 02:29:36 PM UTC
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Pocholo Bolado
Originator Email: pabolado02gmail.com
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
For computation with imaginary
Let a = 1 angle 120 degrees
a = (cosd(120) + ((sind(120)*i)))
a = -0.50000 + 0.86603i
(a^2) + a + 1
ans = 0.0000e+000 + 3.3307e-016i
1 + a + (a^2)
ans = -1.1102e-016 + 3.3307e-016i
a + 1 + (a^2)
ans = -1.1102e-016 + 3.3307e-016i
I thought it would give me same answers of 0 + 0i?
Thank you, I am using windows 10 OS.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51952>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |