필터 지우기
필터 지우기

how to find the integral of F = x./(1+x.^4) on matlab

조회 수: 1 (최근 30일)
jey sun
jey sun 2014년 3월 26일
댓글: Roger Stafford 2014년 3월 27일
how to find the integral of F = x./(1+x.^4) on matlab in the range of 0 and 5 i have used the following; int(F,x,0,6)
but an error of "Undefined function 'int' for input arguments of type 'double'." comes up.
  댓글 수: 1
Roger Stafford
Roger Stafford 2014년 3월 27일
Note that this a problem you don't really need matlab for. A calculus student would tell you to substitute y = x^2 to produce the integral of 1/2/(1+y^2) with respect to y from y = 0 to y = 6^2 which gives you 1/2*atan(36).

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

답변 (2개)

Star Strider
Star Strider 2014년 3월 26일
Use the integral function:
F = @(x) x./(1+x.^4)
C = integral(F, 0, 6)
produces:
C =
771.5128e-003

John D'Errico
John D'Errico 2014년 3월 27일
IF you have the symbolic toolbox, then do this:
syms x
int(x/(1+x^4),x,0,6)
ans =
atan(36)/2
If not, then do it numerically.
format long g
integral(@(x) x./(1 + x.^4),0,6)
ans =
0.771512845100738
Note that the numerical solution happens to match the symbolic one. A good thing, really.
atan(36)/2
ans =
0.771512845100738

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by