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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex/imaginary numbers #47

Closed
vbvyas opened this issue Mar 20, 2017 · 5 comments
Closed

Complex/imaginary numbers #47

vbvyas opened this issue Mar 20, 2017 · 5 comments

Comments

@vbvyas
Copy link

vbvyas commented Mar 20, 2017

@sharkdp Are you planning to add support for complex/imaginary numbers. I am up for sending a PR to add that capability 馃樃

@vbvyas vbvyas changed the title Complex/imaginary numbers) Complex/imaginary numbers Mar 20, 2017
@sharkdp
Copy link
Owner

sharkdp commented Mar 23, 2017

Sorry for the late reply.

I agree that it would be a nice feature, but support for complex numbers doesn't have a very high priority for me, to be honest. If you are up to the challenge, I'd be glad to take pull requests 馃憤.

I suspect that this might need quite a lot of changes in various involved libraries. Probably, one would have to write a complex-numbers package on top of purescript-decimals and change the underlying numeric type for scalar values in purescript-quantities from Decimal to Complex. The final change in insect could be as simple as adding a variable i for the imaginary unit in the initial environment.

@ghost
Copy link

ghost commented Nov 10, 2017

Yep, having support for imaginary numbers arithmetic in rectangular and polar coordinates would be a very useful feature to have for me.

@chronaeon
Copy link

Agreed that this would be a useful feature. Great job on the calc!

@garywill
Copy link

Complex number support would be great for circuit impedance calculation, when there is capacitor or inductance.

Hope ~

@sharkdp
Copy link
Owner

sharkdp commented Sep 26, 2023

follow-up ticket for Numbat here: sharkdp/numbat#180

@sharkdp sharkdp closed this as completed Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants