Anonymous user
Euler method: Difference between revisions
Updated to compile with Nim 1.4. Added missing parameter types.
m (→{{header|Mathematica}} / {{header|Wolfram Language}}: formatting) |
(Updated to compile with Nim 1.4. Added missing parameter types.) |
||
Line 1,812:
y += h * f(t,y)
proc newtoncooling(time, temp: float): float =
-0.07 * (temp - 20)
|