-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Milestone
Description
The old code was replaced by new code in 2009 and is unused in the library.
$ git grep 'fast_float *(.*old *='
src/sage/ext/fast_eval.pyx: sage: f = fast_float(sqrt(x^7+1), 'x', old=True)
src/sage/ext/fast_eval.pyx:def fast_float(f, *vars, old=None, expect_one_var=False):
src/sage/rings/polynomial/multi_polynomial.pyx: sage: list(fast_float(K(0), old=True))
src/sage/rings/polynomial/multi_polynomial.pyx: sage: list(fast_float(K(17), old=True))
src/sage/rings/polynomial/multi_polynomial.pyx: sage: list(fast_float(y, old=True))
Given that this is from a time before deprecation warnings were invented, and this is clearly marked as old, we just remove this code.
We also replace the remaining direct uses of _fast_float_
methods by:
sage.calculus.integration.numerical_integral
sage.numerical.optimize.{minimize_constrained,find_fit}
Expression.find_local_minimum
Expression.find_root
Finally, we remove the entire implementation of the old fast_float
(centering around class FastDoubleFunc
) and all _fast_float_
methods.
CC: @fchapoton @mjungmath @egourgoulhon @videlec @mwageringel @kcrisman @slel @nbruin
Component: fast_callable
Author: Matthias Koeppe, Michael Orlitzky
Branch/Commit: 6fc96d6
Reviewer: Michael Orlitzky, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/32234