insect icon indicating copy to clipboard operation
insect copied to clipboard

Complex/imaginary numbers

Open vbvyas opened this issue 7 years ago • 3 comments

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

vbvyas avatar Mar 20 '17 20:03 vbvyas

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 :+1:.

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.

sharkdp avatar Mar 23 '17 18:03 sharkdp

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

ghost avatar Nov 10 '17 15:11 ghost

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

chronaeon avatar Jul 17 '19 16:07 chronaeon

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

Hope ~

garywill avatar Jul 24 '23 01:07 garywill

follow-up ticket for Numbat here: https://github.com/sharkdp/numbat/issues/180

sharkdp avatar Sep 26 '23 19:09 sharkdp