def chebyshev1(n, decimal_places):
# There are explicit representations, too, but for the sake of consistency
# go for the recurrence coefficients approach here.
_, _, alpha, beta = \
recurrence_coefficients.chebyshev1(n, 'monic', symbolic=True)
beta[0] = sympy.N(beta[0], decimal_places)
return custom(alpha, beta, mode='mpmath', decimal_places=decimal_places)
评论列表
文章目录