proposal-extended-numeric-literals icon indicating copy to clipboard operation
proposal-extended-numeric-literals copied to clipboard

Imaginary Numbers should be built in like Python

Open 7fe opened this issue 4 years ago • 0 comments

I propose we support Imaginary Numbers like Python. The other parts of the proposals are fine with me.

let n = 1j * 1j

https://stackoverflow.com/questions/8370637/complex-numbers-usage-in-python

you could even support the dot syntax

n.real;
n.imaginary;

Right now JS is rather ignored for computational software compared to let's say Python because it lacks proper imaginary number support(and fractions.)

7fe avatar Jan 22 '21 19:01 7fe