0% found this document useful (0 votes)
96 views2 pages

KNS2723 Numerical Methods and Statistics Exercise 4

This document contains 7 numerical integration exercises involving: 1) Evaluating integrals analytically and using trapezoidal and Simpson's rules 2) Fitting data to a cubic equation and integrating to find distance 3) Using trapezoidal and Simpson's rules to calculate bending moment along a beam 4) Estimating the error function using Gauss-Legendre formulas 5) Computing force on a sailboat mast using Gauss-Legendre formula 6) Calculating work done by varying force and angle using numerical integration

Uploaded by

Jing Xuan Chua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views2 pages

KNS2723 Numerical Methods and Statistics Exercise 4

This document contains 7 numerical integration exercises involving: 1) Evaluating integrals analytically and using trapezoidal and Simpson's rules 2) Fitting data to a cubic equation and integrating to find distance 3) Using trapezoidal and Simpson's rules to calculate bending moment along a beam 4) Estimating the error function using Gauss-Legendre formulas 5) Computing force on a sailboat mast using Gauss-Legendre formula 6) Calculating work done by varying force and angle using numerical integration

Uploaded by

Jing Xuan Chua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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