필터 지우기
필터 지우기

simplifying symbolic expressions with factors of pi

조회 수: 3 (최근 30일)
David H
David H 2014년 7월 18일
댓글: David H 2014년 7월 18일
If I have some symbolic expression say
FF = besselj(1/2,x)
FF = (2^(1/2)*sin(x))/(pi^(1/2)*x^(1/2))
I wish to cancel this factor of pi^(1/2) however if I do
GG = FF*pi^(1/2)
then I will get an expression that still has the factor of 1/pi^(1/2) but also a numeric approximation to pi^(1/2) multiplied by it.
How does matlab hold this "symbolic" pi value, since clearly normal pi is just a dp variable and how do I cancel it in expressions?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 18일
편집: Azzi Abdelmalek 2014년 7월 18일
vpa(FF)
or
vpa(FF,4)
  댓글 수: 1
David H
David H 2014년 7월 18일
vpa will convert this expression yes but there must be a way to simply cancel this symbolic pi that matlab introduces itself exactly to produce nicer expressions?

댓글을 달려면 로그인하십시오.

카테고리

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