A Simultaneous Solution of the Gilbert Equation and its equivalent Landau-Lifshitz-Gilbert Equation