Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

slelievre's answer is general, and should be kept in mind ; in this specific case, SR has a specific suitable method :

sage: a.trig_reduce()
tan(x^2 + x + 1)

HTH,