フィルターのクリア

Integration Problem

1 回表示 (過去 30 日間)
Bibha
Bibha 2011 年 5 月 14 日
Hi there,
Here is the simplified version of what I am trying.
% syms x y
% L=5;
% first = @(x,y)exp(abs(x-y).*(-1./5));
% first = 1/exp(abs(x - y)/5);
% intFirst = int(first,y,0,L);
% throws Warning: Explicit integral could not be found.
I tried uring QUAD, QUADV, QUADGK but I could not make it work.
My ultimate goal is to evaluate:
int(int(first,y,0,L),x,0,L);
... and I am stuck on fist integral :(

採用された回答

Matt Fig
Matt Fig 2011 年 5 月 14 日
Don't use symbolic variables for numerical problems. I assume you want a numeric answer because you are using numeric routines like QUAD, QUADV, and QUADGK.
L=5;
f = @(x,y)exp(abs(x-y).*(-1./5));
integ = dblquad(f,0,L,0,L)
  1 件のコメント
Bibha
Bibha 2011 年 5 月 14 日
I guess, I tried too hard :)
Thank you Matt, that worked!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by