Lens::getXi
This function calculates the apparent position in the lens plane, given the actual position . There are three approaches.
The SIS lens has constant deflection, and hence the raytrace equation can be used.
The same formula applies to SIE, because the direction from the lens is known, and the deflection does not depend on the distance from the centre.
The point mass lens gives a quadratic equation whose solution is
The universal solution is to use fix-point iteration to find the solution numerically