how can i implement integralN (given by Sir Mike Hosea)
7 ビュー (過去 30 日間)
古いコメントを表示
sir, i want to evaluate multiple integration of f(x,y,z,w)= xyzw w.r.t dxdydzdw from x=0 to 1 ,y=0 to 1 ,z=0 to 1 and w=0 to 1 ;by using integralN.m (given by Sir Mike Hosea) so how can i do so?
0 件のコメント
回答 (2 件)
Star Strider
2018 年 1 月 14 日
This takes forever and may not converge (I did not let it complete), but at least appears to run:
f = @(x,y,z,w) 1./((x.^x).*(y.^y).*(z.^z).*(w.*w));
f1 = @(y,z,w) integral(@(x) f(x,y,z,w), 1, 2, 'ArrayValued',1);
f2 = @(z,w) integral(@(y) f1(y,z,w), 1, 2, 'ArrayValued',1);
f3 = @(w) integral(@(z) f2(z,w), 1, 2, 'ArrayValued',1);
Q = f3([1 2]);
Result = integral(f3, 1, 2, 'ArrayValued',1);
I will leave it for you to experiment with.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!