def get_paper_part_frac(degree):
from ..partialfrac import thetas_alphas_to_expr_complex
from sympy import Float, I
# Values above are negative what we expect. It also only includes one of
# each complex conjugate, which is fine so long as we pass in the positive
# imaginary parts for the thetas.
thetas = [-Float(r) + Float(i)*I for r, i in
zip(part_frac_coeffs[degree]['thetas']['real'],
part_frac_coeffs[degree]['thetas']['imaginary'])]
alphas = [-Float(r) + Float(i)*I for r, i in
zip(part_frac_coeffs[degree]['alphas']['real'],
part_frac_coeffs[degree]['alphas']['imaginary'])]
[alpha0] = [Float(r) + Float(i)*I for r, i in
zip(part_frac_coeffs[degree]['alpha0']['real'],
part_frac_coeffs[degree]['alpha0']['imaginary'])]
return thetas_alphas_to_expr_complex(thetas, alphas, alpha0)
评论列表
文章目录