[Python-ideas] Fwd: Trigonometry in degrees

Steven D'Aprano steve at pearwood.info
Tue Jun 19 06:05:30 EDT 2018


On Mon, Jun 18, 2018 at 07:23:50PM -0700, Chris Barker wrote:

> Though if someone really wants to implement trig in native degrees -- more
> power to 'em.
> 
> However -- if this is really such a good idea -- wouldn't someone have make
> a C lib that does it? Or has someone? Anyone looked?

No, there's nothing magical about C. You can do it in pure Python. It 
isn't as fast of course, but it works well enough.

When I get a Round Tuit, I'll pop the code up on PyPy.



-- 
Steve


More information about the Python-ideas mailing list