how to create diferential equation with initial conditions ?
2 次查看(过去 30 天)
显示 更早的评论
For the differential equation how would I create a Matlab function that takes no inputs and returns the following outputs:
- Two vectors, x and y, containing the points where the differential equation has been approximated and the corresponding value of the solution.
- 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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!