error in 4th order runge kutta method is of the order of
Runge–Kutta methods The RK4 method is a fourth-order method, meaning that the local truncation error is on the order of   O ( h 5  )  {\displaystyle O(h^{5})} , while the total accumulated error is on the order of   O ( h 4  )  {\displaystyle O(h^{4})} .