Hi, can i ask for help ? I'm solving differential equation:
dP_{n}(t)/dt = P_{n-1}(t) - P_{n}(t) - (n^2 P_{n}(t) - (n+1)^2 * P_{n-1}(t) )
where n = 0:1000
with initial conditions P_{0}(t=0) = 1 - k, P_{1}(t=0)=k and P_{n}(t=0)=0 for n>1

1 件のコメント

Radka Sochorová
Radka Sochorová 2016 年 12 月 9 日
I am sorry, this is the right DE: dP_{n}(t)/dt = P_{n-1}(t) - P_{n}(t) - (n^2 P_{n}(t) - (n+1)^2 * P_{n+1}(t) ) The problem is that I need for n-th term the (n-1)-th term and (n+1)-th term

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

回答 (1 件)

Torsten
Torsten 2016 年 12 月 9 日

0 投票

You mean 1000 equations.
Help ODE45
Best wishes
Torsten.

カテゴリ

ヘルプ センター および File Exchange で Numerical Integration and Differential Equations についてさらに検索

質問済み:

2016 年 12 月 9 日

コメント済み:

2016 年 12 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by