Need Number Expert
Stephane Ducasse
ducasse at iam.unibe.ch
Wed Jun 19 08:26:45 UTC 2002
Hi
( 360 / 7 ) cos
while
( 360 / 7) degreeCos raises an error.
Is this simply because we should add
Fraction>>degreeCos
"Answer the cosine of the receiver taken as an angle in degrees."
^ self degreesToRadians cos
Fraction>>degreeSin
"Answer the sine of the receiver taken as an angle in degrees."
^ self degreesToRadians sin
Would it be better to put it in Number?
Any expert to help here?
Stef
I was always good in math but never in arithmetics....;)
Dr. Stéphane DUCASSE (ducasse at iam.unibe.ch)
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
|