On 25 April 2010 21:44, Mike Hansen <[email protected]> wrote:
> On Sun, Apr 25, 2010 at 1:39 PM, Dr. David Kirkby
> <[email protected]> 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

Thank you Mike. That looks like what I want. I've not tried it yet,
but will hopefully do so soon.

dave

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

Reply via email to