赞
踩
MATLAB中进行二重积分的函数integral2和quad2d
q = integral2(fun,xmin,xmax,ymin,ymax)
q = integral2(fun,xmin,xmax,ymin,ymax,Name,Value)
integral2 Numerically evaluate double integral.
Q = integral2(FUN,XMIN,XMAX,YMIN,YMAX) approximates the integral of
FUN(X,Y) over the planar region XMIN <= X <= XMAX and YMIN(X) <= Y <=
YMAX(X). FUN is a function handle, YMIN and YMAX may each be a scalar
value or a function handle.
quad2d Numerically evaluate double integral over a planar region.
Q = quad2d(FUN,A,B,C,D) approximates the integral of FUN(X,Y) over the
planar region A <= X <= B and C(X) <= Y <= D(X). FUN is a function
handle, C and D may each be a scalar or a function handle.
对于复杂函数的组成,采用函数句柄方式求解需要通过循环获得函数表达式的被积函数:
例子中函数的最终积分函数与下述表达方式相等:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。