octave-maintainers
[Top][All Lists]
Advanced

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

Re: 3.0.2 release (mingw32 check)


From: Benjamin Lindner
Subject: Re: 3.0.2 release (mingw32 check)
Date: Tue, 26 Aug 2008 16:50:38 +0200
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

John W. Eaton wrote:
On 26-Aug-2008, Benjamin Lindner wrote:

| I can follow your argumentation, but why does (-i) have a real part of | (-0) and simultaneously (-1) has a imaginary part of (0) (without the | sign) ?

-1 is stored as a real number only.  There is no imaginary part.

| The above test expects mat2str([-1/3]) to result in "-0.3333+0i".
| Isn't this inconsistent?

Yes.

Considered a bug?


| 1/3 is represented as (1/3,0) and negating it should then yield | (-1/3,-0). This is what puzzled me about this test.

We do have pure real numbers.  1/3 is not stored as (1/3, 0).  It has
no imaginary part.

This I know, but obviously -1/3 is expanded to a complex number, and then the sign of the imaginary part should be a minus, which it is not (according to the test). So I wondered.

benjmain



reply via email to

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