[Python-ideas] Trigonometry in degrees

Chris Angelico rosuav at gmail.com
Fri Jun 8 01:55:34 EDT 2018


On Fri, Jun 8, 2018 at 3:45 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> Although personally I prefer the look of d as a prefix:
>
> dsin, dcos, dtan
>
> That's more obviously pronounced "d(egrees) sin" etc rather than "sined"
> "tanned" etc.

Having it as a suffix does have one advantage. The math module would
need a hyperbolic sine function which accepts an argument in; and
then, like Charles Napier [1], Python would finally be able to say "I
have sindh".

ChrisA

[1] Apocryphally, alas.


More information about the Python-ideas mailing list