How to switch the sign between numerator and denominator in a symbolic expression
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello.
I have an expression of the form
TL_theta = ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/359929/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/359929/image.png)
I would like to express the previous equation in a form where the numerator and denominator have opposite signs as shown. In other words extract or multiply by (-1/-1).
Thanks in advance for your help.
댓글 수: 0
답변 (1개)
Pranav Verma
2020년 9월 17일
Hi Aider,
The symbolic math toolbox does some manipulations internally and carries out the simplification to convert the expression that is best suited for it to proceed for further calculations but it'll provide the correct results to the calculations that it is supposed to do. Eventually it'll cancel out the negative signs from the expression internally.
Please refer to the below discussion on the same lines:
Thanks
댓글 수: 1
Walter Roberson
2020년 9월 17일
Good tracking, Pranav Verma; I think that is still the most complete examination of the matter that I have seen anywhere.
참고 항목
카테고리
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!