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?
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)
%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