I'm finding a problem with this solution. It seems that Snell's Law is violated, if I have done things correctly.
When I have time I can show my derivation, but for now I'll just outline what I did.
We have, for the lens surface points (z,x):
z = A r cos(θ)
x = A r sin(θ)
where we use the function r(θ) as shown in Post #22.
Then
dz/dθ = A ( dr/dθ cos(θ) - r sin(θ) )
dx/dθ = A ( dr/dθ sin(θ) + r cos(θ) )
We can calculate the angle of the surface normal from
θ
norm = atan(-dz/dx)
= atan( -(dz/dr) / (dx/dr) )
From the normal angle, we can caculate the angles of incidence and transmission, and use the refractive indices to check whether Snell's Law holds.
I'm seeing a violation of Snell's Law. I'll try to post the derivation later, and perhaps somebody can either confirm it or point out an error.
Mark