Info

此问题已关闭。 请重新打开它进行编辑或回答。

Why is Matlab not writing out all the terms in an expansion?

2 次查看(过去 30 天)
I am trying to expand some polynomials, and I typed: >> y1
Syms s1 s2 s3 s4;
y1 = (s1^2 - 4*s2 + 8*s4^(1/2))*(4*s2 - s1^2 + 8*s4^(1/2));
>> expand(y1)
And Matlab told me that
ans =
- s1^4 + 8*s1^2*s2 - 16*s2^2 + 64*s4.
But I'm pretty sure the answer should have six terms, so what's happening?
Thanks.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by