Trigonometric Power Reduction Formulas using Symbolic Matlab
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MSleiman
am 4 Dez. 2016
Kommentiert: Star Strider
am 9 Dez. 2016
Hi,
How can i get 1/2(1-cos(2*a)) by rewriting sin(a)^2 using Symbolic Matlab toolbox?
On the other hand if I use rewrite(.5*(1- cos(2*a)),'sin'), i will get sin(a)^2, can't I do the reverse of this process?
Thanks
0 Kommentare
Akzeptierte Antwort
Karan Gill
am 9 Dez. 2016
Here, you want to change the input from "sin" from "a" to cos with "2*a". Essentially, you want make the argument of the function more complicated. The "combine" command does that.
>> syms a
>> f = sin(a)^2;
>> combine(f,'sincos')
ans =
1/2 - cos(2*a)/2
1 Kommentar
Star Strider
am 9 Dez. 2016
Wow! The combine function has been around since R2014a. I need to read the Release Notes more carefully.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!