Infinity?

Stephane Ducasse squeak-dev at lists.squeakfoundation.org
Thu Oct 10 18:10:28 UTC 2002


Hi

I guess that in the book of didier besset on numerical methods there =
is =20
a complete code for that. Roegr and others have been porting it to al=
l =20
the dialects. It should be somewhere in source forge I guess.

Stef
On jeudi, octobre 10, 2002, at 03:49  am, John M McIntosh wrote:

>
> On Wednesday, October 9, 2002, at 05:15  PM, Andrew Henrick wrote:
>
>>
>> Q3.  How can I detect an underflow/overflow in the system.  This m=
ay =20
>> seem like an odd question, but it comes in reference to some code =
=20
>> that I found in "Object-Oriented Implementation of Numerical Metho=
ds" =20
>> by Besset.  He was working in Visual Age, so his exception handlin=
g =20
>> is different, but the idea is to cause an overflow by repetitive =
=20
>> multipilication:
>
> Mmm I recall but only vaguely that in VisualWorks there was a =20
> changeset to introduce a 'really large' number, and a 'really small=
' =20
> number. (Can't remember if +/- infinity came with that too).
>
> This was handy for those calculations were you wanted to work with =
=20
> those concepts.
>
> Take a look on the web for 'double dispatch' and smalltalk and =
=20
> remember it's object (message send +) object
> which leads to all sorts of interesting decisions (at a cost) you c=
an =20
> do for the + message.
>
> Mmm I wonder if someone has a changeset that considers degree of er=
ror =20
> in calculations handy.
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=20
> =3D=3D=3D=3D
> John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting=
.com
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=20
> =3D=3D=3D=3D
>
>
>
Dr. St=E9phane DUCASSE (ducasse at iam.unibe.ch) =20
http://www.iam.unibe.ch/~ducasse/
  "if you knew today was your last day on earth, what would you do
  different? ... especially if, by doing something different, today
  might not be your last day on earth" Calvin&Hobbes





More information about the Squeak-dev mailing list