octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42071] complex trig functions differ from Mat


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #42071] complex trig functions differ from Matlab
Date: Tue, 08 Apr 2014 17:38:51 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0

Update of bug #42071 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Actually, I had someone check this in Matlab, and it looks to me like this is
just Matlab's default output formatting making you see something that's not
there :)

In Matlab:


>> real(exp(i*pi))
ans =
    -1
>> imag(exp(i*pi))
ans =
  1.2246e-016
>> imag(exp(i*20*pi))
ans =
 -2.4493e-015


These look the same as Octave to me, so I'm not sure there's a bug here. The
answers are what the underlying C math library calls return. Or am I missing
something?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42071>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]