simplification of an algebraic equation
2 views (last 30 days)
Show older comments
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)
0 Comments
Accepted Answer
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)
1 Comment
Azzi Abdelmalek
on 15 May 2013
You can also use
[coe,var]=coeffs(a)
coe=double(coe)
More Answers (1)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!