![]() |
VOOZH | about |
The double integral of a non-negative function f(x, y) defined on a region in the plane tells us about the volume of the region under the graph. The double integral of a function of two variables, f(x, y) over the region R can be expressed as follows :
MATLAB allows users to calculate the double integral of a function using the integral2() method. Different syntax of integral2() method are:
integral2(fun,xmin,xmax,ymin,ymax)
This function approximates the integral of any function f = fun(x,y) in the region xmin ≤ x ≤ xmax and ymin(x) ≤ y ≤ ymax(x)
Example 1:
Output :
👁 ImageExample 2:
Output :
👁 ImageF = integral2(fun,xmin,xmax,ymin,ymax,Name,Value)
It specifies additional options with one or more Name, Value pair arguments. The most popular Name used is 'Method'
The Possible values are:
Example 3:
Output :
👁 ImageExample 4:
Output:
👁 Image