Graphics Programs Reference
In-Depth Information
| x | > 35, the integrand is much smaller than
exp(-35)
ans =
6.305116760146989e-016
which is close to the standard floating point accuracy, so:
quadl('exp(-x.ˆ2)', -35, 35)
ans =
1.77245385102263
sqrt(pi)
ans =
1.77245385090552
The answers agree to 9 digits.
Problem 5
(a)
limit(sin(x)/x, x, 0)
ans =
1
(b)
limit((1 + cos(x))/(x + pi), x, -pi)
ans =
0
(c)
limit(xˆ2*exp(-x), x, Inf)
ans =
0
 
Search WWH ::




Custom Search