solving ODE by ode45 with singularity

Good morning,
Enclosed are the codes.
best regards

4 件のコメント

David Goodmanson
David Goodmanson 2018 年 11 月 9 日
Hi Babacar,
when you say the negative part of the function do you mean the negative part preserving the sign, or do you mean the absolute value of the negative part, so that you get a positive quantity?
Torsten
Torsten 2018 年 11 月 9 日
Commented from Babacar:
Hi David, It is: f^+(x)=x, if x>=0, i.e. f^+(x)=max(x,0) and f^-(x)=max(-x,0)
thanks in advance.
Jan
Jan 2018 年 11 月 9 日
ODE45 is a numerical integration. Then do not define the variables as symbolic by sym. What does this mean: "I haven't found the expected solution"? What do you find and what do you expect.
Torsten
Torsten 2018 年 11 月 9 日
Commented from Babacar:
Hi Jan, I get some NAN. You can run the code to see what happened. I want to found the solution T of the ODE (T depends on t and x: T(t,x)), t \in [O,1] and x \in [-R,R]. best regards

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

回答 (0 件)

カテゴリ

タグ

質問済み:

2018 年 11 月 8 日

コメント済み:

2018 年 11 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by