ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 12 Apr 2015 20:09:43 +0200Can I enter identity solution in trig and give me answer?https://ask.sagemath.org/question/26508/can-i-enter-identity-solution-in-trig-and-give-me-answer/ (sin x - cos x)^2
Sun, 12 Apr 2015 19:33:13 +0200https://ask.sagemath.org/question/26508/can-i-enter-identity-solution-in-trig-and-give-me-answer/Answer by god.one for <p>(sin x - cos x)^2</p>
https://ask.sagemath.org/question/26508/can-i-enter-identity-solution-in-trig-and-give-me-answer/?answer=26509#post-id-26509Hi,
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).
Sun, 12 Apr 2015 20:09:43 +0200https://ask.sagemath.org/question/26508/can-i-enter-identity-solution-in-trig-and-give-me-answer/?answer=26509#post-id-26509