ajdmom.utils.simplify_rho

ajdmom.utils.simplify_rho(poly, n)[source]

expand the term ‘sqrt(1-rho^2)’

Parameters:
  • poly (Poly) – the poly contains ‘sqrt(1-rho^2)’ which must follow ‘rho’ immediately

  • n (int) – index of ‘sqrt(1-rho^2)’

Returns:

poly without ‘sqrt(1-rho^2)’

Return type:

Poly