For more details about functions used in this recipe, refer to the following links: Runge-Kutta method: https://math.okstate.edu/people/yqwang/teaching/math4513_fall11/Notes/rungekutta.pdf DAX operators: https://docs.microsoft.com/en-us/dax/dax-operator-reference MAX: https://docs.microsoft.com/en-us/dax/max-function-dax