Integral of the product of integrals

3 ビュー (過去 30 日間)
Morteza
Morteza 2022 年 1 月 16 日
編集済み: Torsten 2022 年 1 月 17 日
I1 = integral [f1(x,y), x, a, b]
I2 = integral [f2(x,y), x, a, b]
I3 = integral [f3(x,y), x, a, b]
integral(I1*I2*I3, y, c, d)
Note that a,b,c,d are constant. Integrals have no analytical solution.

採用された回答

Matt J
Matt J 2022 年 1 月 16 日
編集済み: Matt J 2022 年 1 月 16 日
I=@(y,f) integral( @(x)f(x,y), a, b);
I123=@(y) I(y,f1) .* I(y,f2) .* I(y,f3);
integral(I123, c, d)
  2 件のコメント
Morteza
Morteza 2022 年 1 月 17 日
f1= @(y, teta) y.*exp(teta.^2);
f2=@(y, teta) y.*exp(teta.^3);
f3=@(y, teta) y.*exp(teta.^4);
I=@(teta,f) integral( @(y)f(y, teta), 0, 50);
I123=@(teta) I(teta,f1) .* I(teta,f2) .* I(teta,f3);
integral(I123, 0, 50 )
This is an example based on your code. Error:
Error using integralCalc/finalInputChecks (line 515)
Output of the function must be the same size as the input. If FUN is an array-valued integrand,
set the 'ArrayValued' option to true.
Torsten
Torsten 2022 年 1 月 17 日
編集済み: Torsten 2022 年 1 月 17 日
integral(I123, 0, 50,'ArrayValued',true )
And you shouldn't integrate exp(teta^2),exp(teta^3) or exp(teta^4) up to teta = 50.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by