Simplifying a symbolic expression

18 ビュー (過去 30 日間)
Ko Atz
Ko Atz 2016 年 11 月 4 日
回答済み: Star Strider 2016 年 11 月 4 日
Hi Everyone, I wanted to know how can I simplify this symbolic expression(with assumption : L>0):
(1.346491*q*(L^2)^(7/2))/(L^5*abs(L)) - 0.1559454*F
like this one:
1.346491*q*(L) - 0.1559454*F
(Before this I have expanded and simplified the expression, but it only works partially; the problem is about the fractions defined as symbolic and won't change, like (7/2))

回答 (1 件)

Star Strider
Star Strider 2016 年 11 月 4 日
Use the vpa function:
syms L F q
Eqn = (1.346491*q*(L^2)^(7/2))/(L^5*abs(L)) - 0.1559454*F;
Simplified_Eqn = vpa(simplify(Eqn, 'Steps',10))
Simplified_Eqn =
1.3464910000000001044639930114499*L*q - 0.15594540000000001178648290078854*F

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by