Ploting some ode's solution.

10 ビュー (過去 30 日間)
Yeachan Choi
Yeachan Choi 2022 年 5 月 25 日
編集済み: Torsten 2022 年 5 月 26 日
hello. I want to plot some graph that ode(ordinary differential equation)'s solution(I will make this solution to polynomial from exponential with Taylor Series) . How can I plot that? How can I code it?
y''-5y'+4y = 0

回答 (1 件)

Torsten
Torsten 2022 年 5 月 25 日
編集済み: Torsten 2022 年 5 月 25 日
The general solution is
y(t) = C1*exp(4*t) + C2*exp(t)
for arbitrary constants C1 and C2.
Look up "dsolve" and the examples provided under
  9 件のコメント
Torsten
Torsten 2022 年 5 月 26 日
編集済み: Torsten 2022 年 5 月 26 日
I give up.
All solutions to the equation
y''-5y'+4y = 0
are given by
y(t) = C1*exp(4*t) + C2*exp(t)
for constants C1 and C2.
There are no polynomial solutions, except for the case that C1 = C2 = 0.
So I can't understand what you mean "you want to make the solution a polynomial function".
Of course, you can do
syms C1 C2 t
f = C1*exp(4*t) + C2*exp(t);
taylor(f,t,'Order',8)
but why ?
Yeachan Choi
Yeachan Choi 2022 年 5 月 26 日
haha But Thank you.

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

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by