Info

此问题已关闭。 请重新打开它进行编辑或回答。

A simple differential equation

1 次查看(过去 30 天)
HughLee
HughLee 2020-3-16
关闭: MATLAB Answer Bot 2021-8-20
Hello
My homework is to implememnt a simple differential equation in time-step wise, which to be honest I did not understand properly...
where c and k are constants.
Does anyone get ideas and implement this in MATLAB?
He said if it is not suitable, try
Umm.. anyone good at math and MATLAB? Thanks.
  10 个评论
darova
darova 2020-3-16
  • I haven't tried Euler method. Is there any description on the Internet? Thank you
Walter Roberson
Walter Roberson 2020-3-18
x = x + f'(t,x)*timestep where is this from?
Calculus. The integral of f(t,x) over x=a to b is the limit of the sum h*f'(t,X) where X is a to b in steps of h, as h decreases to 0.
The Euler Method is more sophisticated than this: it takes larger steps and makes better approximations (see for example Simpson's Rule, or Trapazoid Method for why a simple sum is not the best for discrete calculations.)

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by