Home > freetb4matlab > integration > quad2dcgen.m

quad2dcgen

PURPOSE ^

SYNOPSIS ^

function int = quad2dcgen(fun,xlow,xhigh,ylow,yhigh,tol)

DESCRIPTION ^

error:  int = quad2dcgen('Fun','funxlow','funxhigh',ylow,yhigh)
or
        int = quad2dcgen('Fun','funxlow','funxhigh',ylow,yhigh,tol)

This function is similar to QUAD or QUAD8 for 2-dimensional integration
over a general 2-dimensional region, but it uses a Gauss-Chebyshev 
quadrature integration scheme.  
The integral is like:
               yhigh                   funxhigh(y)
      int = Int  (1/sqrt(1-y.^2))   Int  (1/sqrt(1-x.^2))  Fun(x,y)  dx  dy
               ylow                    funxlow(y)

     int     -- value of the integral
       Fun     -- Fun(x,y) (function to be integrated)
       funxlow -- funxlow(y)
       funxhigh-- funxhigh(y)
       ylow    -- lower y limit of integration
       yhigh   -- upper y limit of integration
       tol     -- tolerance parameter (optional)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003