KNS2723 Numerical Methods and Statistics Exercise 4

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

KNS2723 Numerical methods and statistics

Exercise 4
1. Evaluate the following integral:

(a) analytically, and using (b) trapezoidal rule with n = 2 and 4, (c) Simpson’s 1/3 rule with n
= 4.
2. The function

can be used to generate the following table of unequally spaced data:

Evaluate the integral from a = 0 to b = 0.6 using (a) analytical means, (b) the trapezoidal rule,
and (c) the Simpson’s 1/3 rule
3. Determine the distance traveled from the following velocity data:

(a) Use the trapezoidal rule. In addition, determine the average velocity.
(b) Fit the data with a cubic equation using polynomial regression. Integrate the cubic
equation to determine the distance.
4. An 11-m beam is subjected to a load, and the shear force follows the equation

where V is the shear force, and x is length in distance along the beam. We know that V =
dM/dx, and M is the bending moment. Integration yields the relationship

If Mo is zero and x = 11, calculate M using (a) analytical integration, (b) trapezoidal rule, and
(c) Simpson’s 1/3 rule. For (b) and (c) use 1-m increments
5. There is no closed form solution for the error function

Use the (a) two-point and (b) three-point Gauss-Legendre formulas to estimate erf(1.5).
6. The force on a sailboat mast can be represented by the following function:
where z = the elevation above the deck and H = the height of the mast. Compute F for the case
where H = 30 using the two-point Gauss-Legendre formula.
7. The work equation can be expressed as

x0 and xn = the initial and final positions (m), respectively.

for F(x) and θ(x):

The force is in newtons and the angle is in radians. Perform the integration from x = 0 to 30m.

You might also like