필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 2 (최근 30일)
Lillian
Lillian 2014년 7월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 13일
The result is correct, just check it again
Lillian
Lillian 2014년 7월 13일
Oh, you're right. And I typed in the expressions wrong. Thanks.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by