You are on page 1of 1

WORKSHEET NO.

4 NUMERICAL INTEGRATION
Write the algorithm and m file for the following problems. Show output for each.

1. The table shows the power P supplied to the driving wheels of a car as a function of the
speed v. If the mass of the car is m= 2000 kg, determine the time t it takes for the car to
accelerate from 1 m/s to 6 m/s. Use the trapezoidal rule for integration. Consider

Which can be derived from Newtons law F = m (dv/dt) and the definition of power P =
Fv.

2. Evaluate
3. Evaluate
4. Evaluate

with Simpsons 1/3 rule.


using Simpsons 3/8 rule.
using five point quadrature.

5. The equation of an ellipse is

. Write a program that computes the length

of the circumference to four decimal places for given a and b. Test the program with a = 2
and b =1. Use Rectangular rule as method of solution. Assign n.

You might also like