# How can i solve this equation ?

1 vue (au cours des 30 derniers jours)
Mallouli Marwa le 18 Jan 2017
Commenté : Star Strider le 18 Jan 2017
Hi
How can i solve the attached equation to find a ?
When Mt, It, hs and hp are known.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponse acceptée

Star Strider le 18 Jan 2017
If you have the Symbolic Math Toolbox, use the solve function:
syms a hs hp Mt
It = Mt * (a^2/6 + ((a + hs)/2 + hp)^2);
a_sol = solve(It, a)
a_sol_simp = simplify(a_sol, 'Steps',10)
a_sol =
- (6*hp)/5 - (3*hs)/5 - (6^(1/2)*hp*2i)/5 - (6^(1/2)*hs*1i)/5
- (6*hp)/5 - (3*hs)/5 + (6^(1/2)*hp*2i)/5 + (6^(1/2)*hs*1i)/5
a_sol_simp =
-((3 + 6^(1/2)*1i)*(2*hp + hs))/5
((2*hp + hs)*(6^(1/2) + 3i)*1i)/5
##### 2 commentairesAfficher AucuneMasquer Aucune
Mallouli Marwa le 18 Jan 2017
Thanks a lot
Star Strider le 18 Jan 2017
My pleasure.

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Loops and Conditional Statements 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!

Translated by