zeros.py 620 B

1234567891011121314151617181920212223242526
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.optimize` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'RootResults',
  7. 'bisect',
  8. 'brenth',
  9. 'brentq',
  10. 'newton',
  11. 'ridder',
  12. 'toms748',
  13. ]
  14. def __dir__():
  15. return __all__
  16. def __getattr__(name):
  17. return _sub_module_deprecation(sub_package="optimize", module="zeros",
  18. private_modules=["_zeros_py"], all=__all__,
  19. attribute=name)