-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 192: Have Number Provide Complex Conjugate Message #235
Conversation
…complex numbers. It may be that we need to normalise the denominator first.
real and imaginary parts are Fractions.
@@ -750,6 +750,38 @@ PMComplexTest >> testTimesPolynomial [ | |||
self assert: (poly * c at: 0) equals: c | |||
] | |||
|
|||
{ #category : #tests } | |||
PMComplexTest >> testWeCanWriteComplexNumbersWhoRealAndImaginaryPartsAreFractions [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whose Real....
Don't merge yet, @SergeStinckwich . I need to correct a selector name. |
src/Math-Complex/PMComplex.class.st
Outdated
{ #category : #converting } | ||
PMComplex >> asInteger [ | ||
^ self. | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not make sense, at least I never recall this from my days as a physicist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes a bit strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove this, and accept quotients of complex numbers aren't possible yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SergeStinckwich addressed now. Please review when you have energy and capacity.
…ned method and corrected a programmer test.
#category : #'Math-Tests-Complex' | ||
} | ||
|
||
{ #category : #tests } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name these categories better.
@@ -750,6 +750,38 @@ PMComplexTest >> testTimesPolynomial [ | |||
self assert: (poly * c at: 0) equals: c | |||
] | |||
|
|||
{ #category : #tests } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Expressing complex numbers' might be a better name.
Issue #192
Should Number Respond To ComplexConjugate?