Skip to content

Conversation

@olekscode
Copy link
Member

…ugateOf:

hemalvarambhia
hemalvarambhia previously approved these changes Apr 23, 2022
@hemalvarambhia
Copy link
Contributor

This is better. Those tests you deleted didn't seem useful and were not well named.

The coverage has gone down. Do check whether the loss represents something significant before merging.

@hemalvarambhia hemalvarambhia dismissed their stale review April 23, 2022 06:31

I think Number already has complexConjugate

Copy link
Contributor

@hemalvarambhia hemalvarambhia left a comment

Choose a reason for hiding this comment

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

Again, this is great.

{ #category : #'*Math-Complex' }
Number >> complexConjugate [
^ self.
"The complex conjugate of a complex number (a + bi) is another complex number (a - bi).
Copy link
Contributor

@hemalvarambhia hemalvarambhia Apr 23, 2022

Choose a reason for hiding this comment

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

I wouldn't have added the comment here and instead used tests to document this (Tests as Documentation). I would only comment on a design decision I made, the why, if you will. I suspect you did this because not all developers are familiar with concepts from mathematics. Is that right?

The part of about a real number being its own complex conjugate is a test already.

@olekscode olekscode merged commit 3cf9948 into PolyMathOrg:master Apr 23, 2022
@SergeStinckwich SergeStinckwich added this to the v1.0.4 milestone Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants