[Pkg] The Trunk: Kernel-nice.810.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Sep 21 23:06:24 UTC 2013


Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.810.mcz

==================== Summary ====================

Name: Kernel-nice.810
Author: nice
Time: 22 September 2013, 1:05:14.525 am
UUID: eb2a7647-cf62-49f2-8436-40b3a52e18af
Ancestors: Kernel-nice.809

Fix log/ln for integers
1) LargeNegativeInteger sends signal:from: which is a pharosim (unimplemented)
2) a negative SmallInteger answers a nan which is not consistent with LargeNegativeInteger nor Fraction

=============== Diff against Kernel-nice.809 ===============

Item was added:
+ ----- Method: Integer>>ln (in category 'mathematical functions') -----
+ ln
+ 	self > 0 ifTrue: [^super ln].
+ 	^DomainError signal: 'ln is only defined for x > 0'!

Item was added:
+ ----- Method: Integer>>log (in category 'mathematical functions') -----
+ log
+ 	self > 0 ifTrue: [^super log].
+ 	^DomainError signal: 'log is only defined for x > 0'!

Item was changed:
  ----- Method: LargeNegativeInteger>>ln (in category 'mathematical functions') -----
  ln
+ 	^DomainError signal: 'ln is only defined for x > 0'!
- 	^DomainError signal: 'ln is only defined for x > 0' from: 0!

Item was changed:
  ----- Method: LargeNegativeInteger>>log (in category 'mathematical functions') -----
  log
+ 	^DomainError signal: 'log is only defined for x > 0'!
- 	^DomainError signal: 'log is only defined for x > 0' from: 0!



More information about the Packages mailing list