simplification of an algebraic equation
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 15 Mai 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 commentaire
Azzi Abdelmalek
le 15 Mai 2013
You can also use
[coe,var]=coeffs(a)
coe=double(coe)
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Linear Algebra dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!