continued_fraction#
- spheroidal.leaver.continued_fraction(A, s, ell, m, g, n_max=100)[source]#
Evaluates the continued fraction in equation 21 of (Leaver, 1985) until it converges to machine precision using the modified version of Lentz’s method described in https://duetosymmetry.com/notes/take-derivative-continued-fraction/.
- Parameters:
A (double) – angular separation constant
s (int or half-integer float) – spin weight
ell (int or half-integer float) – degree
m (int or half-integer float) – order
n_max (int) – maximum number of iterations
- Return type:
double