Problem while attaining the coefficent of variable

1 回表示 (過去 30 日間)
inzamam shoukat
inzamam shoukat 2024 年 3 月 24 日
コメント済み: Star Strider 2024 年 3 月 24 日
IVW =
1440000*a2*a2s + 12960000*a2*a3s + 12960000*a3*a2s + 103680000*a2*a4s + 155520000*a3*a3s + 103680000*a4*a2s + 777600000*a2*a5s + 1399680000*a3*a4s + 1399680000*a4*a3s + 777600000*a5*a2s + 5598720000*a2*a6s + 11197440000*a3*a5s + 13436928000*a4*a4s + 11197440000*a5*a3s + 5598720000*a6*a2s + 83980800000*a3*a6s + 111974400000*a4*a5s + 111974400000*a5*a4s + 83980800000*a6*a3s + (6046617600000*a4*a6s)/7 + (6718464000000*a5*a5s)/7 + (6046617600000*a6*a4s)/7 + 7558272000000*a5*a6s + 7558272000000*a6*a5s + 60466176000000*a6*a6s
I used fallowing command
Eq_01 =coeffs(IVW ,a2s)
the answer i got from above command is as fallow:
[12960000*a2*a3s + 103680000*a2*a4s + 155520000*a3*a3s + 777600000*a2*a5s + 1399680000*a3*a4s + 1399680000*a4*a3s + 5598720000*a2*a6s + 11197440000*a3*a5s + 13436928000*a4*a4s + 11197440000*a5*a3s + 83980800000*a3*a6s + 111974400000*a4*a5s + 111974400000*a5*a4s + 83980800000*a6*a3s + (6046617600000*a4*a6s)/7 + (6718464000000*a5*a5s)/7 + (6046617600000*a6*a4s)/7 + 7558272000000*a5*a6s + 7558272000000*a6*a5s + 60466176000000*a6*a6s, 1440000*a2 + 12960000*a3 + 103680000*a4 + 777600000*a5 + 5598720000*a6]
My required answer as fallow
1440000*a2 + 12960000*a3 + 103680000*a4 + 777600000*a5 +5598720000*a6

採用された回答

Star Strider
Star Strider 2024 年 3 月 24 日
You need to specify more terms in your coeffs call. The problem is that then the polynomial separates into two separate polynomials. It is not obvious to me where that originates. In any event, ‘Eq_01(1)’ appears to be the result you want.
Try this —
syms a2 a3 a4 a5 a6 a2s a3s a4s a5s a6s
IVW = 1440000*a2*a2s + 12960000*a2*a3s + 12960000*a3*a2s + 103680000*a2*a4s + 155520000*a3*a3s + 103680000*a4*a2s + 777600000*a2*a5s + 1399680000*a3*a4s + 1399680000*a4*a3s + 777600000*a5*a2s + 5598720000*a2*a6s + 11197440000*a3*a5s + 13436928000*a4*a4s + 11197440000*a5*a3s + 5598720000*a6*a2s + 83980800000*a3*a6s + 111974400000*a4*a5s + 111974400000*a5*a4s + 83980800000*a6*a3s + (6046617600000*a4*a6s)/7 + (6718464000000*a5*a5s)/7 + (6046617600000*a6*a4s)/7 + 7558272000000*a5*a6s + 7558272000000*a6*a5s + 60466176000000*a6*a6s
IVW = 
[Eq_01, T] =coeffs(IVW , [a2s a3s a4s])
Eq_01 = 
T = 
Eq_01(1)
ans = 
Eq_01(2)
ans = 
.
  2 件のコメント
inzamam shoukat
inzamam shoukat 2024 年 3 月 24 日
編集済み: inzamam shoukat 2024 年 3 月 24 日
Thanks alot Star Strider it worked :)_
Star Strider
Star Strider 2024 年 3 月 24 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDenoising and Compression についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by