フィルターのクリア

simplification of an algebraic equation

3 ビュー (過去 30 日間)
Hari Kishore
Hari Kishore 2013 年 5 月 15 日
This equation is output of a matlab program.please suggest method To get simplified equation form i.e,simple co efficents for different order.
q0 - 0.00784*q1*(94.1*q0^2 + 368.0*q1^2 + 149.0*q2^2) + 0.00344*q1*(1511.0*q0^2 + 5900.0*q1^2 + 2400.0*q2^2) + 0.0902*q0*(106.0*q0^2 + 175.0*q1^2 + 74.7*q2^2) - 1.45*10^(-4)*q2*(- 2044.0*q0^2 + 2199.0*q1^2 + 711.0*q2^2) - 0.103*q0*(2488.0*q0^2 + 2011.0*q1^2 + 934.0*q2^2) + 3.2*10^(-4)*q2*(2488.0*q0^2 + 2011.0*q1^2 + 934.0*q2^2)

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 15 日
syms q0 q1 q2
e=q0 - 0.00784*q1*(94.1*q0^2 + 368.0*q1^2 + 149.0*q2^2) + 0.00344*q1*(1511.0*q0^2 + 5900.0*q1^2 + 2400.0*q2^2) + 0.0902*q0*(106.0*q0^2 + 175.0*q1^2 + 74.7*q2^2) - 1.45*10^(-4)*q2*(- 2044.0*q0^2 + 2199.0*q1^2 + 711.0*q2^2) - 0.103*q0*(2488.0*q0^2 + 2011.0*q1^2 + 934.0*q2^2) + 3.2*10^(-4)*q2*(2488.0*q0^2 + 2011.0*q1^2 + 934.0*q2^2)
a=simplify(e)
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 15 日
You can also use
[coe,var]=coeffs(a)
coe=double(coe)

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

その他の回答 (1 件)

Hari Kishore
Hari Kishore 2013 年 5 月 15 日
azzi abdelmalek sir, please suggest a method to solve my previous query. link for that query is http://www.mathworks.com/matlabcentral/newsreader/view_thread/328997#904425

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by