Please help me for Matlab....
Favorites|Homepage
Subscriptions | sitemap
HOME > > Please help me for Matlab....

Please help me for Matlab....

[From: ] [author: ] [Date: 12-04-05] [Hit: ]
den = .3*x^2 + 2.5*x +1.int(f,x,1,......
Use MATLAB to calculate the integral from 1 to 6 of (3+e^(.5x))/((.3x^2) + (2.5x) +1.6)

this is what I did....
%g316x17.m
syms x
num = 3+exp(.5*x);
den = .3*x^2 + 2.5*x +1.6;
f = num / den;
int(f,x,1,6)

>> g316x17
Warning: Explicit integral could not be found.
ans =
int((exp(x/2) + 3)/((3*x^2)/10 + (5*x)/2 + 8/5), x = 1..6)

Is that right?

-
Since matlab cannot find a closed form of the definite integral, you will have to approximate it.

%g316x17.m
syms x
num = 3+exp(.5*x);
den = .3*x^2 + 2.5*x +1.6;
f = num / den;

i = int(f,x,1,6);
%Approximate 'i' with 7 significant digits
vpa(i,7)

-
you did it wrong
1
keywords: Matlab,for,help,Please,me,Please help me for Matlab....
New
Hot
© 2008-2010 http://www.science-mathematics.com . Program by zplan cms. Theme by wukong .