how to calculate the power of 2 in a symbolic expression?

3 ビュー (過去 30 日間)
Marianna
Marianna 2022 年 9 月 20 日
コメント済み: Star Strider 2022 年 9 月 21 日
s1,s2,s3 are syms
I \want to calculate the power of 2 in a symbolic expression. The 'power' and '.^' dont calculate it.

採用された回答

Star Strider
Star Strider 2022 年 9 月 20 日
Try something like this —
syms s1 s2 s3
v = 3*sqrt(5)*s1 + 27*sqrt(34)*s2 + 15*sqrt(629)*s3/17 + 3
v = 
v2 = 2^v
v2 = 
v2 = vpa(v2, 6)
v2 = 
.
  4 件のコメント
Marianna
Marianna 2022 年 9 月 21 日
it's correct!!! Thankss
Star Strider
Star Strider 2022 年 9 月 21 日
@Walter Roberson — Thank you!
@Marianna — My pleasure!
If my Answer helped you solve your problem, please Accept it!
I did not understand what you meant by ‘power of 2’.
.

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by