www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/EvaluateImproperTripleIntegralofParameterizedFunctionExample.m
%% Evaluate Improper Triple Integral of Parameterized Function %% % Define the anonymous parameterized function $f(x,y,z) = 10/(x^{2} + y^{2} % + z^{2} + a)$. a = 2; f = @(x,y,z) 10./(x.^2 + y.^2 + z.^2 + a); %% % Evaluate the triple integral over the region $-\infty \le x \le 0$, $-100 % \le y \le 0$, and $-100 \le z \le 0$. format long q1 = integral3(f,-Inf,0,-100,0,-100,0) %% % Evaluate the integral again and specify accuracy to approximately 9 % significant digits. q2 = integral3(f,-Inf,0,-100,0,-100,0,'AbsTol', 0,'RelTol',1e-9)