simplification of an algebraic equation

1 view (last 30 days)
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)

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 15 May 2013
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)

More Answers (1)

Hari Kishore
Hari Kishore on 15 May 2013
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

Community Treasure Hunt

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

Start Hunting!