[squeak-dev] The Trunk: Kernel-nice.510.mcz

Bert Freudenberg bert at freudenbergs.de
Mon Nov 1 09:15:41 UTC 2010


On 31.10.2010, at 21:25, commits at source.squeak.org wrote:
>  ----- Method: Float>>degreeCos (in category 'mathematical functions') -----
>  degreeCos
> + 	"Take care of exceptional values"
> + 	
> + 	self isFinite ifTrue: [^super degreeCos].
> + 	^self radiansToDegrees cos!
> - 	"Answer the cosine of the receiver taken as an angle in degrees."
> - 
> - 	^ self degreesToRadians cos!
> 
> Item was changed:
>  ----- Method: Float>>degreeSin (in category 'mathematical functions') -----
>  degreeSin
> + 	"Take care of exceptional values"
> + 	
> + 	self isFinite ifTrue: [^super degreeSin].
> + 	^self radiansToDegrees sin!
> - 	"Answer the sine of the receiver taken as an angle in degrees."
> - 
> - 	^ self degreesToRadians sin!


These surely should still use degreesToRadians, no?

- Bert -





More information about the Squeak-dev mailing list