Remix.run Logo
gus_massa 2 days ago

The origianl article use complex numbers, in particular to get sin and cos from eml:

> e^{iφ} = cosφ + i sin φ

So x may be a complex number and sqrt(x*x) is a complex number that sometimes is equal to x and sometimes to -x depending on how lucky you were selecting the branches of sqrt.