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

feat: Add complex numbers #37

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sigmasternchen
Copy link

First draft for complex number (#33), please take a look.

Changes from the discussion on the issue:

  • I added a public reciprocal function since I needed it internally anyway.
  • The power function only takes positive integer exponents, because I used De Moivre’s theorem. Accordingly weighted_product also only supports integer weights. If anyone knows a more generic algorithm, please let me know.

Documentation is also still missing, and I didn't do any changes to the main maths module yet.

Please let me know what you think.

I apologize in advance for not being very responsive - I'm currently on vacation and probably won't have a lot of time to work on this.

- Sigma

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