File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -621,18 +621,18 @@ PMComplexNumber >> productWithVector: aVector [
621621]
622622
623623{ #category : #' mathematical functions' }
624- PMComplexNumber >> raisedTo: aNumber [
624+ PMComplexNumber >> raisedTo: index [
625625 " Answer the receiver raised to aNumber."
626626
627- aNumber isInteger ifTrue: [ ^ self raisedToInteger: aNumber ].
627+ index isInteger ifTrue: [ ^ self raisedToInteger: index ].
628628
629- 0 = aNumber ifTrue: [ ^ self class one ]. " Special case of exponent=0"
630- 1 = aNumber ifTrue: [ ^ self ]. " Special case of exponent=1"
629+ 0 = index ifTrue: [ ^ self class one ]. " Special case of exponent=0"
630+ 1 = index ifTrue: [ ^ self ]. " Special case of exponent=1"
631631 0 = self ifTrue: [ " Special case of self = 0"
632- ^ aNumber < 0
632+ ^ index < 0
633633 ifTrue: [ (ZeroDivide dividend: self ) signal ]
634634 ifFalse: [ self ] ].
635- ^ (aNumber * self ln) exp " Otherwise use logarithms"
635+ ^ (index * self ln) exp " Otherwise use logarithms"
636636]
637637
638638{ #category : #' mathematical functions' }
You can’t perform that action at this time.
0 commit comments