| 1 | initial version |
Hi,
it is possible, just try
var('x')
((cos(x)-sin(x))^2).trig_simplify()
which will result in
-2*cos(x)*sin(x) + 1
| 2 | No.2 Revision |
Hi,
it is possible, just try
var('x')
((cos(x)-sin(x))^2).trig_simplify()
which will result in
-2*cos(x)*sin(x) + 1
since sin(x)^2+cos(x)^2=1 (I think you mean this formula with the trigonometric identity).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.