Solve a triple integral

4 ビュー (過去 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 Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by