Text this: A novel algorithm to solve the nonlinear differential equation of the motion function of a lithium-battery assembly machine