Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

simplify_trig and sorting, for example in fractions

The output of

show((1-cos(x)^2.simplify_trig())
show((cos(x)^2-1).simplify_trig())

is

sin(x)^2
cos(x)^2-1.

Even worse, the result of

 (sin(x)^2/(1-cos(x)^2)).simplify().simplify_trig()

is

 -(sin(x)^2/(cos(x)^2-1)

when it should be 1. Is there anyway to get sagemath to simplify trigonometric expressions more intelligently?