Simpsons Algorithm for numerical integration using MATLAB


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



No comments