[Python-ideas] Fwd: Trigonometry in degrees

Robert Vanden Eynde robertvandeneynde at hotmail.com
Mon Jun 11 13:32:37 EDT 2018

As mentioned, with complex numbers the radians make more sense and of course cmath.sind(x) + 1j * cmath.sind(x) != cmath.exp(1j * x).

However, adding degrees version for cmath (import cmath) is still useful, cmath.rectd, cmath.phased, cmath.polard etc.

2018-06-11 19:24 GMT+02:00 Michael Selik <mike at selik.org<mailto:mike at selik.org>>:
Would sind and cosd make Euler's formula work correctly?

sind(x) + i * sind(x) == math.e ** (i * x)

I suspect that adding these functions is kind of like those cartoons where the boat is springing leaks and the character tried to plug them with their fingers. Floating point is a leaky abstraction.

Perhaps you'd prefer an enhancement to the fractions module that provides real (not float) math?

Python-ideas mailing list
Python-ideas at python.org<mailto:Python-ideas at python.org>
Code of Conduct: http://python.org/psf/codeofconduct/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180611/619e9d5e/attachment-0001.html>

More information about the Python-ideas mailing list