'simplify' expression not efficient in Matlab2015
조회 수: 1 (최근 30일)
이전 댓글 표시
I used Matlab 2015 to simplify an trigonometric expression, but in vain. It is not able to replace 1-sin^2() with cos^2(). If my memory serves correctly, Matlab2014 was able to do this very efficiently.
Is there a new function that does this in 2015, or we just lost a great feature.
Edit: Inserted Picture
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 2월 21일
syms theta
simplify( 1 - sin(theta)^2 )
댓글 수: 2
Star Strider
2016년 2월 21일
In R2015b:
syms theta
q1 = simplify(1 - sin(theta)^2, 'steps', 10)
q2 = rewrite(1 - sin(theta)^2, 'cos')
q1 =
cos(theta)^2
q2 =
cos(theta)^2
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!