Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
Lillian
Lillian il 12 Lug 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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.
  2 Commenti
Lillian
Lillian il 13 Lug 2014
Oh, you're right. And I typed in the expressions wrong. Thanks.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by