where subscripts indicate covariant indices and superscripts indicate
contravariant indices. The type of index determines how a tensor transforms to a different coordinate system. A non-orthonormal coordinate system has two sets of base vectors, the covariant and contravariant base. A covariant tensor component use contravariant base vectors and a contravariant tensor component use covariant base vectors. For all orthonormal systems these two set of base vectors are identical. Now assume that
Di is given in a different coordinate system that
ni. To compute
Dn properly,
Di first have to be transformed as a contravariant tensor
where xi is the
i:th coordinate for the desired system, and
ui is the
i:th coordinate for the original system. To separate tensor indices, they also include the coordinate name. If the tensor was covariant, the transformation would become
The expression parser performs a raise-index operation on Dj before taking the dot product. This is essentially a multiplication with the contravariant metric tensor,
gij. The metric tensor is the identity matrix for all orthonormal systems.