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

generic support underneath Complex type #53

Closed
sritchie opened this issue Aug 8, 2020 · 1 comment
Closed

generic support underneath Complex type #53

sritchie opened this issue Aug 8, 2020 · 1 comment
Assignees

Comments

@sritchie
Copy link
Member

sritchie commented Aug 8, 2020

Right now, the Complex datatype is based on

  • Double in Clojure,
  • js/Number in Clojurescript due to the Complex.js dependency

josdejong/mathjs#694 has some discussion about the problems this has created in math.js. The big one is that you can't extend complex arithmetic to arbitrary precision.

We COULD probably do this if we rebuilt Complex in Clojurescript, on top of the generic arithmetic. (I think you might be able to get complex matrices for free??)

https://github.com/infusion/Complex.js/blob/master/complex.js is not that big of a library. porting it over to cljc, and backing it with generic operations, would be a really nice project.

@sritchie sritchie transferred this issue from sicmutils/sicmutils Jan 24, 2023
@sritchie sritchie transferred this issue from another repository Jan 24, 2023
@sritchie
Copy link
Member Author

sritchie commented Nov 4, 2023

Closed by #151.

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

No branches or pull requests

2 participants