Re: Checking for Undefined [was Re: Ada vs Fortran for scientific applications]
- From: AeroSpace Ed <mimihoohoo@xxxxxxxxxxxxx>
- Date: Fri, 26 May 2006 02:30:07 GMT
Hi,
I think you might have missed the point of the NaN discussion. It wasn't
about the language being able to represent it, but by using such a bit
pattern to detect an access to a memory location that had never been set by
the program.
Ed
Nasser Abbasi wrote:
"Bob Lidral" <l1dralspamba1t@xxxxxxxxxxx> wrote in message
news:4475DA0F.5030603@xxxxxxxxxxxxxx
Gordon Sande wrote:
That's one of the features I miss about the old CDC CYBER architectures.
Their (one's complement, sigh) numeric format supported plus or minus
infinity (e.g., divide a non-zero number by zero) and plus or minus
indefinite (e.g., divide zero by zero, infinity by infinity, or use an
"indefinite" value anywhere in a divide operation).
hi,
fyi, Matlab supports NAN's, and it has Inf and -Inf (infinities)
Warning: Divide by zero.a=1/0;
a =a
Inf
ans =a-Inf
NaN
ans =1-Inf
-Inf
Mathematica also:
In[12]:= 1./0;
(warning displayed like in Matlab)
Out[13]= ComplexInfinity
Nasser
.
- Prev by Date: Re: gfortran: cannot redirect output (errors and warnigns) )with > in ms-dos
- Next by Date: Re: Converting fixed-to-free format
- Previous by thread: gfortran: cannot redirect output (errors and warnigns) )with > in ms-dos
- Next by thread: cannot link assembler code to CVF 6.6 code
- Index(es):
Relevant Pages
|
Loading