[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42071] complex trig functions differ from Mat
From: |
Michael Godfrey |
Subject: |
[Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab |
Date: |
Wed, 09 Apr 2014 08:37:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
Follow-up Comment #6, bug #42071 (project octave):
As usual in these matters, best to start at the beginning.
The short answer is simple:
octave:3> i*20*pi
ans = 0000000000000000 404f6a7a2955385ei
octave:4> format long
octave:5> ans
ans = 0.000000000000000 + 62.831853071795862i
octave:6> exp(i*20*pi)
ans = 1.00000000000000e+00 - 2.44929359829471e-15i
octave:7>
MATLAB Version 7.9.0.529 (R2009b)
>> i*20*pi
ans =
0000000000000000 404f6a7a2955385ei
>> format long
>> ans
ans =
0 +62.831853071795862i
>> exp(i*20*pi)
ans =
1.000000000000000 - 0.000000000000002i
>>
So, it is time to fix the format conversion for
type complex. Any volunteers?
A longer version of the above is attached. No really
important information, just some history.
And, this report should be relabelled as
format conversion of imaginary part of type complex.
Michael
(file #31143)
_______________________________________________________
Additional Item Attachment:
File name: format_conv Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42071>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Michael Godfrey, 2014/04/08
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Mike Miller, 2014/04/08
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Michael Godfrey, 2014/04/08
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Mike Miller, 2014/04/08
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, John W. Eaton, 2014/04/08
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Michael Godfrey, 2014/04/08
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab,
Michael Godfrey <=
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Mike Miller, 2014/04/09
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, John W. Eaton, 2014/04/09
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Mike Miller, 2014/04/09
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Michael Godfrey, 2014/04/09
- [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab, Mike Miller, 2014/04/09