Re: standard trig functions for degrees ?

Robert Dodier <[email protected]>
Newsgroups gmane.comp.mathematics.maxima.general
Message-ID <CAAsY_sQxAgA4w6gZdhiDdASj9jgjyiQ7DWi9MiG941hDcOugNg@mail.gmail.com>
On Mon, Apr 27, 2026 at 12:48 PM Henry Baker <[email protected]> wrote:

> A number of computer languages -- e.g., Fortran -- support trig functions over degrees -- e.g., sind(x), cosd(x), tand(x), asind(x), etc.
>
> I know it's "trivial", but could Maxima please go ahead a define standardly the trig functions over degrees?  We're talking about about increasing the core system at most by perhaps 1K bytes !

Well, maybe the code is trivial, but the increased mental burden is
not ... Instead of creating new functions, I am OK with two functions,
radians(x) to get radians from degrees and degrees(x) to get degrees
from radians. Then one can call those whenever it makes sense.

We could make those simplifying functions. Just thinking out loud here.

Hmm, maybe degrees(x) should represent x degrees, like radians(x)
represents x radians. radians(x) simplifies to x and degrees(x)
simplifies to x*%pi/180. E.g. sin(degrees(90)) --> sin(%pi/2), etc.

I think I'm leaning towards degrees(x) representing x degrees. What
does anyone else think?

Robert


_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.