quaternion algebraic expression