Graphics Programs Reference
In-Depth Information
diff(ans, x)
ans =
(x+4)^(5/2)-8*(x+4)^(3/2)+16*(x+4)^(1/2)
simplify(ans)
ans =
x^2*(x+4)^(1/2)
(e)
int(exp(-xˆ2), x, -Inf, Inf)
ans =
pi^(1/2)
Problem 4
(a)
int(exp(sin(x)), x, 0, pi)
Warning: Explicit integral could not be found.
> In C:\MATLABR12\toolbox\symbolic\@sym\int.m at line 58
ans =
int(exp(sin(x)),x = 0 .. pi)
format long; quadl('exp(sin(x))', 0, pi)
ans =
6.2087580358484585
(b)
quadl('sqrt(x.ˆ3 + 1)', 0, 1)
ans =
1.11144798484585
(c)
MATLAB integrated this one exactly in 4(e) above; let's integrate it
numerically and compare answers. Unfortunately, the range is infinite,
so to use quadl we have to approximate the interval. Note that for
 
Search WWH ::




Custom Search