help-octave
[Top][All Lists]
Advanced

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

Re: puzzling Octave behaviour


From: Shai Ayal
Subject: Re: puzzling Octave behaviour
Date: Sat, 22 Jul 2006 20:29:36 +0300
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Joan,

1. you show the same vectors arg(ltest(1:10)) twice -- is this what you meant? 2. If you were to subtract the two vectors arg(ltmps(1:10))-arg(ltest(1:10)) I am sure you would see they differ by some thing in the order of magnitude of 1e-15. That's floating point for you..,

Shai

Joan Picanyol i Puig wrote:
Hi there,

It's always hard to debug with Octave, but this is just plain silly:

debug> disp(arg(ltest(1:10)))
 Columns 1 through 3:

  -1.8553496929550626  -1.9838606021755145  -1.4955671994810567

 Columns 4 through 6:

  -1.4888745153854199   2.1184513794028010   2.4945712220195189

 Columns 7 through 9:

  -0.0754857813862795   0.0360733730004250  -1.0827597910965596

 Column 10:

  -0.7724227004694977
debug> disp(arg(ltest(1:10)))
 Columns 1 through 3:

  -1.8553496929550626  -1.9838606021755145  -1.4955671994810567

 Columns 4 through 6:

  -1.4888745153854199   2.1184513794028010   2.4945712220195189

 Columns 7 through 9:

  -0.0754857813862795   0.0360733730004250  -1.0827597910965596

 Column 10:

  -0.7724227004694977
debug> disp(arg(ltmps(1:10)) == arg(ltest(1:10)))
  0  0  1  1  1  0  0  0  1  0

I feel like being cheated on. Is there any explanation for such
contradictory results? Or is have I gone into some weird madness and
have unreasonable expectations?

Oh,

debug> disp(OCTAVE_VERSION)
2.1.71

built from FreeBSD ports, if that matters.

qvb



reply via email to

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