フィルターのクリア

Trigonometric Power Reduction Formulas using Symbolic Matlab

13 ビュー (過去 30 日間)
MSleiman
MSleiman 2016 年 12 月 4 日
コメント済み: Star Strider 2016 年 12 月 9 日
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

採用された回答

Karan Gill
Karan Gill 2016 年 12 月 9 日
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 件のコメント
Star Strider
Star Strider 2016 年 12 月 9 日
Wow! The combine function has been around since R2014a. I need to read the Release Notes more carefully.

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 12 月 4 日
syms a
simplify(rewrite(rewrite(sin(a)^2,'tan'),'sin'))

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by