It has taken several iterations to arrive at an implementations which can compute high order roulette amplitudes in reasonable time. The following implementation of roulette amplitudes was introduced in v3.4, replacing Implementation of SIE (v3.3).
Raytrace¶
This is implemented in the SIE class (src/simlib/SIE.cpp).
To evaluate the lens potential , we calculate the polar coordinates and , and use the formula (see SIE (Singular isothermal ellipsoid)) for . The deflection is given by Theorem 1.
Roulette Amplitudes for the SIE Lens¶
The roulette amplitudes for SIE are calculated by CosmoSim.Roulettes.fastsie,
in two steps
symdiff()computes a dictionary of derivatives using SIE (Singular isothermal ellipsoid).thirdworker()computes a dictionary of amplitudes, using Definition 1.