Search This Blog

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

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();