how to create diferential equation with initial conditions ?

2 ビュー (過去 30 日間)
Dave Martin
Dave Martin 2014 年 4 月 3 日
コメント済み: RahulTandon 2015 年 7 月 8 日
For the differential equation how would I create a Matlab function that takes no inputs and returns the following outputs:
  1. Two vectors, x and y, containing the points where the differential equation has been approximated and the corresponding value of the solution.
  2. A real number representing the integral of the approximated solution in the interval where the differential equation has been solved.
For the ordinary differential equation:
d3y dx3 + dydx - xy + d2ydx2 = 2;
x 3 [1:1; 5:8]
with initial conditions y(0) = 0:0616;dydx(0) = 0.5886; d2ydx2(0)=0.0989
  2 件のコメント
Star Strider
Star Strider 2014 年 4 月 3 日
編集済み: Star Strider 2014 年 4 月 3 日
RahulTandon
RahulTandon 2015 年 7 月 8 日
x 3 [1:1, 5:8] means x3 = [1:1,5:8] Am i right?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by