Professional Documents
Culture Documents
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
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.