matlab的一些二重积分的小程序问题
来源:百度知道 编辑:UC知道 时间:2024/07/07 10:03:04
>> help dblquad
DBLQUAD Numerically evaluate double integral.
Q = DBLQUAD(FUN,XMIN,XMAX,YMIN,YMAX) evaluates the double integral of
FUN(X,Y) over the rectangle XMIN <= X <= XMAX, YMIN <= Y <= YMAX. FUN
is a function handle. The function Z=FUN(X,Y) should accept a vector X
and a scalar Y and return a vector Z of values of the integrand.
Q = DBLQUAD(FUN,XMIN,XMAX,YMIN,YMAX,TOL) uses a tolerance TOL instead
of the default, which is 1.e-6.
Q = DBLQUAD(FUN,XMIN,XMAX,YMIN,YMAX,TOL,@QUADL) uses quadrature
function QUADL instead of the default QUAD.
Q = DBLQUAD(FUN,XMIN,XMAX,YMIN,YMAX,TOL,MYQUADF) uses your own
quadrature function MYQUADF instead of QUAD. MYQUADF is a function
handle. MYQUADF should have the same calling sequence as QUAD and
QUADL. Use [] as a placeholder to obtain the default value of TOL.
Example:
Integ