ABSTRACT

This chapter covers Simpson's rule for approximating the value of definite integrals as well as MATLAB's integral function. We can evaluate a definite integral of a single variable using Simpson's rule. Understanding the concept in Simpson's rule will help you implement MATLAB's integral function for evaluating definite integrals. An integral is improper if the integrand approaches infinity at some point within the limits of integration, including the end points. The MATLAB function for evaluating integrals is the function integral. It is a replacement for MALAB's quad function. The MATLAB's function for numerically evaluating a double integral is integral. This function replaces MATLAB's dblquad function. The integral function is also able to evaluate certain improper integrals. It does this by selecting limits of integration that are very close to the singular points, but not on them, thus, removing the singularity.