File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -169,18 +169,18 @@ PMComplex >> - anObject [
169169]
170170
171171{ #category : #arithmetic }
172- PMComplex >> / anObject [
172+ PMComplex >> / aNumber [
173173 " Answer the result of dividing receiver by aNumber"
174174 | a b c d newReal newImaginary |
175- anObject isComplexNumber ifTrue:
175+ aNumber isComplexNumber ifTrue:
176176 [a := self real.
177177 b := self imaginary.
178- c := anObject real.
179- d := anObject imaginary.
178+ c := aNumber real.
179+ d := aNumber imaginary.
180180 newReal := ((a * c) + (b * d)) / ((c * c) + (d * d)).
181181 newImaginary := ((b * c) - (a * d)) / ((c * c) + (d * d)).
182182 ^ self class real: newReal imaginary: newImaginary].
183- ^ anObject adaptToComplex: self andSend: #/ .
183+ ^ aNumber adaptToComplex: self andSend: #/ .
184184]
185185
186186{ #category : #comparing }
You can’t perform that action at this time.
0 commit comments