continued_fraction_deriv#

spheroidal.leaver.continued_fraction_deriv(A, s, ell, m, g, n_max=100)[source]#

Evaluates the derivative of the continued fraction in equation 21 of (Leaver, 1985) until it converges to machine precision using automatic differentiation of Lentz’s method as 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