Euler's method numerically approximates solutions of first-order ordinary differential equations (ODEs) with a given initial value. It is an explicit method for solving initial value problems (IVPs), as described in [[wp:Euler method|the wikipedia page]].
where <big><math>h</math></big> is the step size, the most relevant parameter for accuracy of the solution. A smaller step size increases accuracy but also the computation cost, so it has always has to be hand-picked according to the problem at hand.
Newton's cooling law describes how an object of initial temperature <big><math>T(t_0) = T_0</math></big> cools down in an environment of temperature <big><math>T_R</math></big>:
It says that the cooling rate <big><math>\frac{dT(t)}{dt}</math></big> of the object is proportional to the current temperature difference <big><math>\Delta T = (T(t) - T_R)</math></big> to the surrounding environment.