NTNU---Norwegian University of Science and Technology
NTNU---Norwegian University of Science and Technology
We define a local co-ordinate system aligned with the lens, so that
the lens orientation is θ=0. Let (x′,y′) be a point in the local frame, corresponding to (x,y) in
the global frame.
The calculation of roulette amplitudes takes three steps.
Calculate the partial derivatives of ψ with respect to
x′ and y′ up to required order.
This is done recursively using a CAS engine.
Calculate the partial derivatives of ψ with respect to
x and y up to required order, using the chain rule.
We take the same approach as we did with the raytrace equation,
finding the roulette amplitudes first for θ=0, and then
rotating the entire system to find the amplitudes for arbitrary
θ.
Inner differentation of the co-ordinate transformation¶
The local co-ordinates are given as the rotation
\begin{aligned}
In practice, we omit the DL factors, because they cancel against other factors
when the amplitudes are used in the deflection formulæ.
For implementation, we need to rewrite αsm and βsm
without the □ operator.
We get
\begin{aligned}
\alpha^m_s(\vec{\xi}) &=
\Gamma^m_s
\sum_{k=0}^{\lfloor s/2 \rfloor} (-1)^k
\binom{s}{2k}
\sum_{h=0}^H\binom{H}{h}
\frac{\partial^{m+1}\psi(\vec{\xi})}
{(\partial x)^{m+1-2k-2h}(\partial y)^{2k+2h}}
\
\beta^m_s(\vec{\xi}) &= \Gamma^m_s
\sum_{k=0}^{\lfloor (s-1)/2\rfloor} (-1)^k
\binom{s}{2k+1}
\sum_{h=0}^H\binom{H}{h}
\frac{\partial^{m+1}\psi(\vec{\xi})}
{(\partial x)^{m-2k-2h}(\partial y)^{2k+2h+1}}
\end{aligned}
where
\begin{aligned}
H = \frac{m+1-s}{2}
\end{aligned}
where
\begin{aligned}
\mathcal{C}^{m(k)}s &= \frac{1}{\pi}\int{-\pi}^{\pi}{\rm d}\phi\sin^k\phi\cos^{m-k+1}\phi\cos s\phi
\
\mathcal{S}^{m(k)}s &= \frac{1}{\pi}\int{-\pi}^{\pi}{\rm d}\phi\sin^k\phi\cos^{m-k+1}\phi\sin s\phi
\end{aligned}
Rearranging, for the sake of implementation, we can write