Error handle

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error handle

Stephan Tassart
Hi there,

Is there any other way in octave with the flag --traditional to set a
value to Inf or to NaN without triggering an error exception which
stops a program than (for instance):

>> try
a=Inf;
catch
end_try_catch

>> a
a = Inf


In matlab 4.2, seemingly, you don't need to handle these kind of
exceptions:

>>  a=Inf
a = Inf

Thanks

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
You can produce the sound \ Stéphan TASSART (Analyse-Synthèse IRCAM)/
 of 2 hands clapping. Now, \     Tel: (33) 1 44 78 48 90           /
  how does one hand sound?  \       EMAIL: [hidden email]       /
   (TaDream) WWW: http://www.ircam.fr/equipes/analyse-synthese/  /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Reply | Threaded
Open this post in threaded view
|

Error handle

John W. Eaton-6
On 19-Mar-1997, Stephan Tassart <[hidden email]> wrote:

| Is there any other way in octave with the flag --traditional to set a
| value to Inf or to NaN without triggering an error exception which
| stops a program than (for instance):
|
| >> try
| a=Inf;
| catch
| end_try_catch
|
| >> a
| a = Inf

This should work without generating an exception.  If it doesn't, I
would guess that you are using Octave on a DEC Alpha running OSF/1 or
Digital Unix.  The problem is that gcc 2.7.x doesn't fully support
IEEE floating point operations on the Alpha.  This is supposed to be
fixed in gcc 2.8.x, but I don't know when that will be released.

jwe