Skip to content
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

Merged
merged 14 commits into from
Apr 18, 2022

Conversation

hemalvarambhia
Copy link
Contributor

Issue #192

Should Number Respond To ComplexConjugate?

@hemalvarambhia hemalvarambhia marked this pull request as ready for review April 10, 2022 20:48
@hemalvarambhia hemalvarambhia changed the title Issue 192: Have Number Provide Complex Conjugate Issue 192: Have Number Provide Complex Conjugate Message Apr 10, 2022
@@ -750,6 +750,38 @@ PMComplexTest >> testTimesPolynomial [
self assert: (poly * c at: 0) equals: c
]

{ #category : #tests }
PMComplexTest >> testWeCanWriteComplexNumbersWhoRealAndImaginaryPartsAreFractions [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whose Real....

@hemalvarambhia
Copy link
Contributor Author

Don't merge yet, @SergeStinckwich . I need to correct a selector name.

{ #category : #converting }
PMComplex >> asInteger [
^ self.
]
Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes a bit strange

Copy link
Contributor Author

@hemalvarambhia hemalvarambhia Apr 12, 2022

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.

Copy link
Contributor Author

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.

#category : #'Math-Tests-Complex'
}

{ #category : #tests }
Copy link
Contributor Author

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 }
Copy link
Contributor Author

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.

@hemalvarambhia hemalvarambhia merged commit 3f5808f into master Apr 18, 2022
@SergeStinckwich SergeStinckwich deleted the issue-192 branch April 18, 2022 08:38
@SergeStinckwich SergeStinckwich added this to the v1.0.4 milestone Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants