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
Mischa Kim 2014 年 6 月 30 日
編集済み: Mischa Kim 2014 年 6 月 30 日

1 投票

Dan, try instead
int((1+fun^2)^5,x)
or
vpa(int((1+fun^2)^5,x),4)
for better readability.

2 件のコメント

Dan Kenney
Dan Kenney 2014 年 6 月 30 日
I copied and pasted that code and it evaluated the integral, but I realized it was raised to 5, not (1/2). Is there such a thing as too complicated an integral for matalb? I figured this was not that difficult of an operation to perform.
Mischa Kim
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.

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2014 年 6 月 30 日

コメント済み:

2014 年 6 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by