1
S f(x) dx,
0
where
{ (1+x) on (0,0.5)
f(x) = { ,
{ (2-x) on (0.5,1.0)
according to the following simple rules:
+1
S ln(1+x^2) dx,
-1
for the following rules:
3
S exp(x)*sqrt(x) dx
0
using 7 points and Simpson's composite rule. Minimize the number of function
evaluations, multiplications and additions.
(Ans.: 27.45 or 27.43 with extra chops)
4
I = S (sqrt(x)/exp(x)) dx
1
using a 7 point Simpson's rule. Minimize the number of function evaluations
and multiplications in calculating the composite rule.
(Ans.:
x = (1.000 1.500 2.000 2.500 3.000 3.500 4.000)
f(x) =(4ch) (0.3678 0.2732 0.1913 0.1297 0.8623e-1 0.5645e-1 0.3663e-1),
I =(4ch) (0.3678+4*(0.2732+0.1297+0.5649e-1)+2*(0.1913+0.8623e-1)+0.3663e-1)/6.
=(4ch) (0.4661,0.4660,0.4663), depending on the chopping sequence.)