disk01_positive_rule, a MATLAB code which demonstrates how to compute a quadrature rule of a particular precision to estimate integrals over the interior of the unit positive disk in 2D.
The unit positive disk in 2D is the set of points (X,Y) such that 0 <= X, 0 <= Y, and X^2+Y^2 <= 1.
The program sets up the nonlinear equations that characterize the points and weights of the rule, and then calls fsolve() to solve the nonlinear system.
The information on this web page is distributed under the MIT license.
disk01_positive_rule is available in a MATLAB version and an Octave version.
matlab_rule, a MATLAB code which computes a quadrature rule which estimates the integral of a function f(x), which might be defined over a one dimensional region (a line) or more complex shapes such as a circle, a triangle, a quadrilateral, a polygon, or a higher dimensional region, and which might include an associated weight function w(x).