Why does Infinity truncated raise an error?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Why does Infinity truncated raise an error?

Terry Raymond
It would seem to me that infinity truncated should return itself
rather than raise an error, after all, infinity + or - 1
returns infinity.

Why the error?

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Why does Infinity truncated raise an error?

Andres Valloud-6
Which infinity do you mean?  The one in AT metanumerics, or the floating
point variety?

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Terry Raymond
Sent: Monday, May 24, 2010 8:50 AM
To: VWNC
Subject: [vwnc] Why does Infinity truncated raise an error?

It would seem to me that infinity truncated should return itself rather
than raise an error, after all, infinity + or - 1 returns infinity.

Why the error?

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Why does Infinity truncated raise an error?

Terry Raymond
AT metanumerics.

The result of truncating, rounding, ceiling, flooring all
produce an answer within (+-1) of the original number so
why is that not infinity?

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Valloud, Andres
> Sent: Monday, May 24, 2010 1:05 PM
> To: [hidden email]
> Subject: Re: [vwnc] Why does Infinity truncated raise an error?
>
> Which infinity do you mean?  The one in AT metanumerics, or the floating
> point variety?
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Terry Raymond
> Sent: Monday, May 24, 2010 8:50 AM
> To: VWNC
> Subject: [vwnc] Why does Infinity truncated raise an error?
>
> It would seem to me that infinity truncated should return itself rather
> than raise an error, after all, infinity + or - 1 returns infinity.
>
> Why the error?
>
> Terry
>
> ===========================================================
> Terry Raymond
> Crafted Smalltalk
> 80 Lazywood Ln.
> Tiverton, RI  02878
> (401) 624-4517      [hidden email]
> <http://www.craftedsmalltalk.com>
> ===========================================================
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Why does Infinity truncated raise an error?

Andres Valloud-6
Well, for floating point values, the current behavior is that INF and
NaN truncated answer themselves, so it appears the metanumerics infinity
should do the same...

-----Original Message-----
From: Terry Raymond [mailto:[hidden email]]
Sent: Monday, May 24, 2010 10:28 AM
To: Valloud, Andres; [hidden email]
Subject: RE: [vwnc] Why does Infinity truncated raise an error?

AT metanumerics.

The result of truncating, rounding, ceiling, flooring all produce an
answer within (+-1) of the original number so why is that not infinity?

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Valloud, Andres
> Sent: Monday, May 24, 2010 1:05 PM
> To: [hidden email]
> Subject: Re: [vwnc] Why does Infinity truncated raise an error?
>
> Which infinity do you mean?  The one in AT metanumerics, or the
> floating point variety?
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Terry Raymond
> Sent: Monday, May 24, 2010 8:50 AM
> To: VWNC
> Subject: [vwnc] Why does Infinity truncated raise an error?
>
> It would seem to me that infinity truncated should return itself
> rather than raise an error, after all, infinity + or - 1 returns
infinity.

>
> Why the error?
>
> Terry
>
> ===========================================================
> Terry Raymond
> Crafted Smalltalk
> 80 Lazywood Ln.
> Tiverton, RI  02878
> (401) 624-4517      [hidden email]
> <http://www.craftedsmalltalk.com>
> ===========================================================
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Why does Infinity truncated raise an error?

Andres Valloud-6
60335: "AT metanumerics' Infinity and NotANumber>>truncated should
answer self"

However, there are other problems that remain unsolved.  For example,
NaN refuses to compare with other entities, while the relevant specs
require that

NaN [<|<=|=|>=|>] anything

evaluates to false, including cases like this:

x := -1.0d sqrt.
x = x

However, I am having a hard time evaluating what code could break by
changing NaN comparisons to answer false in all cases.

Andres.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Valloud, Andres
Sent: Monday, May 24, 2010 10:35 AM
To: [hidden email]
Subject: Re: [vwnc] Why does Infinity truncated raise an error?

Well, for floating point values, the current behavior is that INF and
NaN truncated answer themselves, so it appears the metanumerics infinity
should do the same...

-----Original Message-----
From: Terry Raymond [mailto:[hidden email]]
Sent: Monday, May 24, 2010 10:28 AM
To: Valloud, Andres; [hidden email]
Subject: RE: [vwnc] Why does Infinity truncated raise an error?

AT metanumerics.

The result of truncating, rounding, ceiling, flooring all produce an
answer within (+-1) of the original number so why is that not infinity?

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Valloud, Andres
> Sent: Monday, May 24, 2010 1:05 PM
> To: [hidden email]
> Subject: Re: [vwnc] Why does Infinity truncated raise an error?
>
> Which infinity do you mean?  The one in AT metanumerics, or the
> floating point variety?
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Terry Raymond
> Sent: Monday, May 24, 2010 8:50 AM
> To: VWNC
> Subject: [vwnc] Why does Infinity truncated raise an error?
>
> It would seem to me that infinity truncated should return itself
> rather than raise an error, after all, infinity + or - 1 returns
infinity.

>
> Why the error?
>
> Terry
>
> ===========================================================
> Terry Raymond
> Crafted Smalltalk
> 80 Lazywood Ln.
> Tiverton, RI  02878
> (401) 624-4517      [hidden email]
> <http://www.craftedsmalltalk.com>
> ===========================================================
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc