Trapezoid rule for numerical integration using MATLAB



Output:

>> trapezoid_c
Enter lower limit, a: 0
Enter upper limit, b: pi
Enter no. of subintervals, n: 20
The approximate integral is:  1.99588597

>> 



No comments