octave-maintainers
[Top][All Lists]
Advanced

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

Re: imag () function detail regarding -0.0000


From: Michael D Godfrey
Subject: Re: imag () function detail regarding -0.0000
Date: Tue, 11 Sep 2012 21:27:03 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

On 09/11/2012 08:53 PM, Daniel J Sebald wrote:
On 09/11/2012 07:15 PM, Jordi Gutiérrez Hermoso wrote:
On 11 September 2012 20:00, Daniel J Sebald<address@hidden>  wrote:
octave:59>  [1,-1,-0]'*i
ans =

    0 + 1i
   -0 - 1i
   -0 - 0i

Is this proper behavior?  I would think

There is no actual "i" in Octave. Instead, "i" is a function that
returns the equivalent of std::complex<double>(0.0, 1.0). You can see
this behaviour in other ways, e.g. inf*i giving NaNs.
Oops, I take it back.  Was thinking of integers.
Forget what I said.


reply via email to

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