Simplifying a symbolic expression

20 次查看(过去 30 天)
Ko Atz
Ko Atz 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 CenterFile Exchange 中查找有关 Assumptions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by