[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: imag () function detail regarding -0.0000
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: imag () function detail regarding -0.0000 |
Date: |
Tue, 11 Sep 2012 20:15:28 -0400 |
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.
- Jordi G. H.
- imag () function detail regarding -0.0000, Daniel J Sebald, 2012/09/11
- Re: imag () function detail regarding -0.0000,
Jordi Gutiérrez Hermoso <=
- Re: imag () function detail regarding -0.0000, Daniel J Sebald, 2012/09/11
- Re: imag () function detail regarding -0.0000, Michael D Godfrey, 2012/09/11
- Re: imag () function detail regarding -0.0000, Max Brister, 2012/09/11
- Re: imag () function detail regarding -0.0000, Michael D Godfrey, 2012/09/11
- Re: imag () function detail regarding -0.0000, Michael D Godfrey, 2012/09/11
- Re: imag () function detail regarding -0.0000, Daniel J Sebald, 2012/09/11
- Re: imag () function detail regarding -0.0000, John W. Eaton, 2012/09/12
- Re: imag () function detail regarding -0.0000, Michael D Godfrey, 2012/09/12
- Re: imag () function detail regarding -0.0000, John W. Eaton, 2012/09/12
- Re: imag () function detail regarding -0.0000, Michael D Godfrey, 2012/09/12