On Sun, Apr 25, 2010 at 1:39 PM, Dr. David Kirkby
<david.kir...@onetel.net> wrote:
> I can do the following in Mathematica.
>
> In[1]:= TrigReduce[ Sin[x] Cos[y]]
>
>        Sin[x - y] + Sin[x + y]
> Out[1]= -----------------------
>                   2
>
> Is there a way to get the same result in Sage?

There is a trig_reduce method which gives something similar:

sage: var('x,y')
(x, y)
sage: f = sin(x)*cos(y)
sage: f.trig_reduce()
-1/2*sin(-x + y) + 1/2*sin(x + y)

--Mike

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

Reply via email to