Tensors and Differential Geometry Applied to Analytic and Numerical Coordinate Generation