Euler method: Difference between revisions

Content added Content deleted
(Updated to compile with Nim 1.4. Added missing parameter types.)
Line 1,812: Line 1,812:
y += h * f(t,y)
y += h * f(t,y)


proc newtoncooling(time, temp): float =
proc newtoncooling(time, temp: float): float =
-0.07 * (temp - 20)
-0.07 * (temp - 20)