Solve a triple integral

조회 수: 2 (최근 30일)
Irene Bujalance
Irene Bujalance 2017년 8월 31일
편집: Irene Bujalance 2017년 8월 31일
Hello everyone. I would like to solve a triple integral. To do this, I have defined the function:
Function integrating = function (x, y,z) Syms x and z Global gv MB0 kappa Til hbarra Lc sigma mc mv cteB T Vds b SF SE fB fT e
B = gv * e * MB0 * MB0 * exp (-2 * kappa * Til) / (4 * pi ^ 3 * hbarra); % C · eV2 / eV · s (1) (2 * mv * x ^ 2 / hbarra ^ 2 + 2 * mc * y ^ 2 / hbarra ^ 2-4 * sqrt (mc * mv) * x * y * Cos (z)) Lc * Lc). (3/2); % M ^ 2 SE = exp ((x-y) ^ 2 / (sigma ^ 2)) / (sqrt (pi * sigma)); % 1 / eV FB = 1 ./ (exp (x / (cteB * T) + 1); % Without units FT = 1 ./ (exp ((x-Vds) / (cteB * T) + 1); % Without units
Integrating = b * SF * SE * (fB-fT);
And then I do:
For i = 1: 17     Sol (i) = integral3(function, Ect (i), inf, -inf, Evb (i), 0.2 * pi); End
Where Ect and Evb is a vector I have defined above.
It gives me the following error and I do not know what I'm doing wrong:
Error using integralCalc/finalInputChecks (line 511) Input function must return 'double' or 'single' values. Found 'sym'.
. . .
Thank you very much for your help.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by