[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ISO C++ and Octave
From: |
John W. Eaton |
Subject: |
Re: ISO C++ and Octave |
Date: |
Thu, 1 Feb 2001 20:37:29 -0600 |
On 1-Feb-2001, Mumit Khan <address@hidden> wrote:
| Speaking of Sun Workshop, I get the following:
|
| octave> sqrt (-1)
| ans = 6.1232e-17 + 1.0000e+00i
|
| Obviously this doesn't tests like ``sqrt (-1) == 1i'' and tests fail.
|
| octave> eps
| 2.2204e-16
|
| Ideas?
Nope. That looks pretty bad. Sort of like
octave:6> sin (pi)
ans = 1.2246e-16
(would it really hurt to make this a special case?).
jwe