Skip to content

Commit 81fe788

Browse files
Breaking Change: Renamed the class to follow the ubiquitous language. (#276)
* Renamed the class to follow the ubiquitous language. * Renamed the variables to those used by mathematicians. * Made the names of the tests more concise by omitting 'WeCan'.
1 parent d105ffc commit 81fe788

File tree

6 files changed

+223
-223
lines changed

6 files changed

+223
-223
lines changed

src/Math-Complex/Number.extension.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Number >> adaptToComplex: rcvr andSend: selector [
1010
Number >> asComplex [
1111
"Answer a Complex number that represents value of the receiver."
1212

13-
^ PMComplex real: self imaginary: 0
13+
^ PMComplexNumber real: self imaginary: 0
1414
]
1515

1616
{ #category : #'*Math-Complex' }
@@ -25,7 +25,7 @@ Number >> complexConjugate [
2525

2626
{ #category : #'*Math-Complex' }
2727
Number >> i [
28-
^ PMComplex real: 0 imaginary: self
28+
^ PMComplexNumber real: 0 imaginary: self
2929
]
3030

3131
{ #category : #'*Math-Complex' }
@@ -36,7 +36,7 @@ Number >> i: aNumber [
3636
this is the same as (self + aNumber i) but a little bit more efficient."
3737

3838
aNumber isNumber ifFalse: [self error: 'Badly formed complex number'].
39-
^PMComplex real: self imaginary: aNumber
39+
^PMComplexNumber real: self imaginary: aNumber
4040
]
4141

4242
{ #category : #'*Math-Complex' }

0 commit comments

Comments
 (0)