how to write symoblic intergal equation with mutiple unknowns and solve it symbolically
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I am trying to solve this integral. My first step was to try and see what the integral looks like after integration using symbolic integration. but i cant seem to get it correctly.
here is my code:
syms eps betta delta
f(eps,betta,delta) = (tanh(0.5*betta*sqrt(eps^2 + delta^2)))/sqrt(eps^2 + delta^2);
F = int(f,eps);
The output is just :
F(eps, betta, delta) =
int(tanh((betta*(delta^2 + eps^2)^(1/2))/2)/(delta^2 + eps^2)^(1/2), eps)
The output seems to be the same as my input. I was wondering if it is becasue this equation needs to be solve numerically. Greatly appreciated if anyone can help. Thank you very much.
댓글 수: 0
답변 (1개)
Karan Nandankar
2020년 12월 29일
Hi,
The integrand is bit complex for the int() to compute closed form of an integral, which is the reason that it returns an unresolved integral.
However, you can laverage use of numerical integration for this function, but you'll be computing definite integration with lower and upper limit for the curve.
For the scenarios when int() is unable to compute closed form of an indefinite integral, you can approximate the integrand function around some point using taylor expansion, and then compute the integral.
Say, for example, expand the integrand function around α = 0, and then use int() to compute the indefinite integral.
fTaylor = taylor(f, eps, 'ExpansionPoint', 0, 'Order', 5);
F = int(fTaylor,eps)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!