INT will not evalaute integral
이전 댓글 표시
I have a code that needs to evalaute the arc length equation below:
syms x
a = 10;
b = 10;
c = 10;
d = 10;
fun = 4*a*x^3+3*b*x^2+2*c*x+d
int((1+(fun)^2)^.5)
but all that returns is below:
ans =
int(((40*x^3 + 30*x^2 + 20*x + 10)^2 + 1)^(1/2), x)
Why wont matlab evaluate this integral? I added a line under to check if it would evaulate int(x) and it returned the desired result.
답변 (1개)
Mischa Kim
2014년 6월 30일
편집: Mischa Kim
2014년 6월 30일
Dan, try instead
int((1+fun^2)^5,x)
or
vpa(int((1+fun^2)^5,x),4)
for better readability.
댓글 수: 2
Dan Kenney
2014년 6월 30일
Mischa Kim
2014년 6월 30일
Well, there is probably no closed-form solution, which is why MATLAB's Symbolic Math Toolbox won't do the trick. In this case, use numeric integration.
카테고리
도움말 센터 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!