[BUGLET] in Float>raisedTo:

Jarvis, Robert P. Jarvisb at timken.com
Mon Feb 22 14:57:22 UTC 1999

What should

	-1.0 raisedTo: 0.5?

produce?  How about

	-2.0 raisedTo: 2.5

Adding complex numbers to Squeak could be an interesting exercise for those
so inclined.

Bob Jarvis
The Timken Company

> -----Original Message-----
> From:	sqrmax at cvtci.com.ar [SMTP:sqrmax at cvtci.com.ar]
> Sent:	Friday, February 19, 1999 11:08 PM
> To:	squeak at cs.uiuc.edu
> Subject:	Re: RE: RE: [BUGLET] in Float>raisedTo:
> Hi.
> >You are right, but it's more than that. It is also not correct to raise
> >a negative number to a float
> How come? A floating point number is a rational number!
> >and if we take care of the integer powers
> >first #ln will take care of enforcing just that (so abs is not
> necessary).
> I insist that it's ok to raise any of squeak's numbers to floats since 
> floats are rational numbers.
> Andres.

More information about the Squeak-dev mailing list