Raytrace¶
This is implemented in the SIE class (src/simlib/SIE.cpp).
Evaluation of the lens potential.¶
To evaluate the lens potential ψR(x,y), we calculate the polar coordinates
R and ϕ, and use the formula (see SIE) for
ψξ0,f,θ,DLSIE(R)(R,ϕ).
Evaluation of the Deflection.¶
This uses
∂x∂ψR∂y∂ψR=C0f′f⋅(cosθ⋅sinh−1(ff′⋅Rxcosθ+ysinθ)−sinθ⋅sin−1(f′⋅R−xsinθ+ycosθ))=C0f′f⋅(sinθ⋅sinh−1(ff′⋅Rxcosθ+ysinθ)+cosθ⋅sin−1(f′⋅R−xsinθ+ycosθ)) as taken from the expression for α(x,y) above.
Roulette¶
Under Construction
αsmβsm=Γsm□a−k=0∑2k≤s(−1)k(2ks)(∂x)s−2k(∂y)2k∂s=Γsm□a−k=0∑2k+1≤s(−1)k(2k+1s)(∂x)s−2k−1(∂y)2k+1∂s where
Γsm={−(2−δ0s)2mχm+1((m+1−s)/2m+1),m+s odd0m+s even and
□=(∇ψ)2 TODO a−