Cubic formulas for computing the zeros of certain quaternionic polynomial