Quaternion tools for mathematical prediction