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

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

[Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for second column of complex pairs
Date: Fri, 27 Jan 2017 03:45:33 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #13, bug #50124 (project octave):

Re: the FIXME question in Comment #7

matlab 2016b:


>> exp (2i*pi*[0:4]'/5)

ans =

  1.000000000000000 + 0.000000000000000i
  0.309016994374947 + 0.951056516295154i
 -0.809016994374947 + 0.587785252292473i
 -0.809016994374947 - 0.587785252292473i
  0.309016994374947 - 0.951056516295154i

>> cplxpair(ans)

ans =

 -0.809016994374947 - 0.587785252292473i
 -0.809016994374947 + 0.587785252292473i
  0.309016994374947 - 0.951056516295154i
  0.309016994374947 + 0.951056516295154i
  1.000000000000000 + 0.000000000000000i


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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