【符号运算问题】。

7 views (last 30 days)
wicew
wicew on 20 Nov 2022
Answered: gamexe on 20 Nov 2022
x y z s1 s2 s3 s4 s5 s6为变量
matlab(2014a)输出了如下结果:
s =
[ s1, s2, s3, s4, s5, s6, (s4^2)^(1/2), (s6^2)^(1/2)]
X =
[ (y^4)^(1/2), (z^4)^(1/2), x*y, x*z, y*z, x^2, y^2, z^2]
问题是:如何使输出的次方数化简,例如,使(y^4)^(1/2)变为y^2,使(s4^2)^(1/2)变为s4
请网友们帮一下忙,谢谢了

Accepted Answer

gamexe
gamexe on 20 Nov 2022
试了一下用simplify函数,不行。
我想原因可能是,(s4^2)^(1/2) 和 s4 本来就是不同的,你想想如果s4=-1,这两个值就是不等的。

More Answers (0)

Categories

Find more on 启动和关闭 in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!