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

Fix reciprocal of a complex number with zero imaginary part. #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gagern
Copy link

@gagern gagern commented Nov 18, 2014

The reciprocal function is broken when applied to a complex number with zero imaginary part. The code path forgot to use a namespace for the result, and also forgot to include the imaginary part of the result. I added a suitable test case to the documentation to check for this. The missing namespace was found by jshint, the missing imaginary part then exposed by the unit test I had added.

gagern added a commit to CindyJS/CindyJS that referenced this pull request Sep 8, 2015
montaga pushed a commit to montaga/CindyJS that referenced this pull request Oct 16, 2015
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.

1 participant