basic.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.special` namespace for importing the functions
  3. # included below.
  4. import warnings
  5. from . import _basic
  6. from ._ufuncs import (mathieu_a, mathieu_b, iv, jv, gamma,
  7. psi, hankel1, hankel2, yv, kv)
  8. __all__ = [ # noqa: F822
  9. 'ai_zeros',
  10. 'assoc_laguerre',
  11. 'bei_zeros',
  12. 'beip_zeros',
  13. 'ber_zeros',
  14. 'bernoulli',
  15. 'berp_zeros',
  16. 'bi_zeros',
  17. 'clpmn',
  18. 'comb',
  19. 'digamma',
  20. 'diric',
  21. 'erf_zeros',
  22. 'euler',
  23. 'factorial',
  24. 'factorial2',
  25. 'factorialk',
  26. 'fresnel_zeros',
  27. 'fresnelc_zeros',
  28. 'fresnels_zeros',
  29. 'gamma',
  30. 'h1vp',
  31. 'h2vp',
  32. 'hankel1',
  33. 'hankel2',
  34. 'iv',
  35. 'ivp',
  36. 'jn_zeros',
  37. 'jnjnp_zeros',
  38. 'jnp_zeros',
  39. 'jnyn_zeros',
  40. 'jv',
  41. 'jvp',
  42. 'kei_zeros',
  43. 'keip_zeros',
  44. 'kelvin_zeros',
  45. 'ker_zeros',
  46. 'kerp_zeros',
  47. 'kv',
  48. 'kvp',
  49. 'lmbda',
  50. 'lpmn',
  51. 'lpn',
  52. 'lqmn',
  53. 'lqn',
  54. 'mathieu_a',
  55. 'mathieu_b',
  56. 'mathieu_even_coef',
  57. 'mathieu_odd_coef',
  58. 'obl_cv_seq',
  59. 'pbdn_seq',
  60. 'pbdv_seq',
  61. 'pbvv_seq',
  62. 'perm',
  63. 'polygamma',
  64. 'pro_cv_seq',
  65. 'psi',
  66. 'riccati_jn',
  67. 'riccati_yn',
  68. 'sinc',
  69. 'y0_zeros',
  70. 'y1_zeros',
  71. 'y1p_zeros',
  72. 'yn_zeros',
  73. 'ynp_zeros',
  74. 'yv',
  75. 'yvp',
  76. 'zeta'
  77. ]
  78. def __dir__():
  79. return __all__
  80. def __getattr__(name):
  81. if name not in __all__:
  82. raise AttributeError(
  83. "scipy.special.basic is deprecated and has no attribute "
  84. f"{name}. Try looking in scipy.special instead.")
  85. warnings.warn(f"Please use `{name}` from the `scipy.special` namespace, "
  86. "the `scipy.special.basic` namespace is deprecated.",
  87. category=DeprecationWarning, stacklevel=2)
  88. return getattr(_basic, name)