【符号运算问题】。

6 vues (au cours des 30 derniers jours)
wicew
wicew le 20 Nov 2022
Réponse apportée : gamexe le 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
请网友们帮一下忙,谢谢了

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur 启动和关闭 dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!