Skip to content

Commit b911d23

Browse files
committed
Fixed #248
1 parent 4b53cef commit b911d23

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/Math-Complex/PMComplex.class.st

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,13 @@ PMComplex >> complexConjugate [
411411

412412
{ #category : #arithmetic }
413413
PMComplex >> conjugated [
414-
415414
"Return the complex conjugate of this complex number."
416415

417416
self
418417
deprecated: 'Use #complexConjugate instead'
419418
on: '3 April 2022'
420-
in:
421-
'Pharo-9.0.0+build.1575.sha.9bb5f998e8a6d016ec7abde3ed09c4a60c0b4551 (64 Bit)'.
419+
in: #Pharo9
420+
transformWith: '`@rec conjugated' -> '`@rec complexConjugate'.
422421

423422
^ self complexConjugate
424423
]

src/Math-Complex/PMComplex.extension.st

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ PMComplex >> productWithVector: aVector [
1717
^ aVector collect: [ :each | each * self ]
1818
]
1919

20-
{ #category : #'*Math-Complex' }
21-
PMComplex class >> random [
22-
"Answers a random number with abs between 0 and 1."
23-
24-
^ self abs: 1.0 random arg: 2 * Float pi random
25-
]
26-
2720
{ #category : #'*Math-Complex' }
2821
PMComplex >> random [
2922
"analog to Number>>random. However, the only bound is that the abs of the produced complex is less than the length of the receive. The receiver effectively defines a disc within which the random element can be produced."
3023
^ self class random * self
3124

3225
]
3326

27+
{ #category : #'*Math-Complex' }
28+
PMComplex class >> random [
29+
"Answers a random number with abs between 0 and 1."
30+
31+
^ self abs: 1.0 random arg: 2 * Float pi random
32+
]
33+
3434
{ #category : #'*Math-Complex' }
3535
PMComplex >> subtractToPolynomial: aPolynomial [
3636
^ aPolynomial addNumber: self negated

0 commit comments

Comments
 (0)