On 2 Ășn, 17:38, Nicolas <[email protected]> wrote: > Thanks for your answer ! > > Following your idea, ny playing around in maxima, I found that : > > trigreduce(sin((a+b)/c)) > ----> sin(b/c+a/c) > > Therefore > trigexpand(trigreduce(sin((a+b)/c))) > ----> cos(a/c)*sin(b/c)+sin(a/c)*cos(b/c) > Which is what is wanted > > but I did not find any trigreduce in sage > > Any idea how I can do that directly in sage ? >
sage: sin((a+b)/c)._maxima_().trigreduce().trigexpand().sage() sin(a/c)*cos(b/c) + sin(b/c)*cos(a/c) sage: sin((a+b)/c)._maxima_().expand().trigexpand().sage() sin(a/c)*cos(b/c) + sin(b/c)*cos(a/c) btw: I attemepted to include trigreduce by http://trac.sagemath.org/sage_trac/ticket/7334 . However, there was an idea not to add new functions to Sage, but rewrite simpification rules in Sage. See the discussion attached to trac 7334 and the link to sage-devel: http://groups.google.cz/group/sage-devel/browse_thread/thread/3899a578da747009 and look forward to Sage 4.3 :) Robert -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
