Added residual formulas for the llg equation

Cartesian works, spherical polars doesn't.