Approximating solutions using Euler’s method