trigonometric simplification



Yes, there are several choices to be made:

* What range to reduce to?  For sin, I'd think -%pi/2 .. %pi/2; for cos, 0
.. %pi.
* Prefer -sin(...) or sin(-x)?  (Maxima currently prefers the former)
* Reduce everything to cos instead of mixed sin/cos?  (or everything to sin)

Opinions?

        -s


On Thu, Jan 24, 2013 at 10:47 AM, Steve Haflich <smh at franz.com> wrote:

> Stavros Macrakis <macrakis at alum.mit.edu> wrote:
>
>    I'd think that Maxima should do range reductions like cos(23/5*%pi) =>
> cos(3/5*%pi) by default, and even for that matter cos
>    (x+23/5*%pi) => cos(x+3/5*%pi).  Perhaps do this with %piargs='all and
> make that the default?
>
> You should clarify what what you intend for negative angels:
>
>   cos(-23/5*%pi) => cos(2/5*%pi) ???
>
> While this isn't a very problematic issue, it ought be specified.  cos
> is symmetric about zero, but this property is more evident if the domain
> were reduced to -pi..+pi instead.  Would this matter anywhere?
>