how to calculate the power of 2 in a symbolic expression?
7 次查看(过去 30 天)
显示 更早的评论
s1,s2,s3 are syms
I \want to calculate the power of 2 in a symbolic expression. The 'power' and '.^' dont calculate it.
0 个评论
采纳的回答
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
v2 = 2^v
v2 = vpa(v2, 6)
.
4 个评论
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 Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!