Hi Alexandre,

On Tue, Mar 10, 2009 at 4:35 AM, alexandre.mol...@fpms.ac.be
<alex.mol...@gmail.com> wrote:
> cos(q1)*cos(q2) - sin(q1)*sin(q2)
>
> to obtain the following result : cos(q1+q2) ?

We don't have the Maxima function trigreduce wrapped in Sage, but you
can access it like this:

sage: f = cos(q1)*cos(q2) - sin(q1)*sin(q2)
sage: maxima(f).trigreduce().sage()
cos(q2 + q1)

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to