Simplifying a symbolic expression
조회 수: 17 (최근 30일)
이전 댓글 표시
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))
댓글 수: 0
답변 (1개)
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!