Deprecation of compute_leading_term
#21843
Labels
Deprecation Removal
Tracks the removal of a deprecated feature. See github.com/sympy/sympy/wiki/Deprecating-policy
series
The
compute_leading_term
method is being deprecated in #21837.as_leading_term
can be used instead.The individual
_eval_as_leading_term
methods are quite cheap, some of them involve a call tolimit
, but that is generally on trivial args and would not take much time.compute_leading_term
calculates series first (which itself would be relatively expensive if the arg of the function is not trivial), and then callsas_leading_term
.The possible simplification of the argument of the function to its series expansion (which itself could be slow in the same cases
_eval_as_leading_term
is slow due to thelimit
call), does not give any visible speed improvements over directly callingas_leading_term
, so this method is no longer needed. It was used at 2 places in the codebase, which have been changed.This is also the deprecation removal tracking issue.
The text was updated successfully, but these errors were encountered: