  We take the Christoffel coefficients as an operator and introduce new
mappings for quaternionic products to reach the theory of electrodynamics in
general spacetime. With the help of the directional operator of the covariant
derivative, we generalize the quaternioic mechanism to the theory of gravity
and show that the Einstein equation has the freedom to choose the constant term
in agreement with the covariant derivative.
