math.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. import _math
  2. pi = _math.pi
  3. e = _math.e
  4. def ceil(x: float) -> int:
  5. return _math.ceil(x)
  6. def fabs(x: float) -> float:
  7. return _math.fabs(x)
  8. def floor(x: float) -> int:
  9. return _math.floor(x)
  10. def fmod(x: float, y: float) -> float:
  11. return _math.fmod(x, y)
  12. def remainder(x: float, y: float) -> float:
  13. return _math.remainder(x, y)
  14. def trunc(x: float) -> float:
  15. return _math.trunc(x)
  16. def exp(x: float) -> float:
  17. return _math.exp(x)
  18. def log(x: float) -> float:
  19. return _math.log(x)
  20. def log2(x: float) -> float:
  21. return _math.log2(x)
  22. def log10(x: float) -> float:
  23. return _math.log10(x)
  24. def pow(x: float, y: float) -> float:
  25. return _math.pow(x, y)
  26. def sqrt(x: float) -> float:
  27. return _math.sqrt(x)
  28. def acos(x: float) -> float:
  29. return _math.acos(x)
  30. def asin(x: float) -> float:
  31. return _math.asin(x)
  32. def atan(x: float) -> float:
  33. return _math.atan(x)
  34. def atan2(x: float, y: float) -> float:
  35. return _math.atan2(x, y)
  36. def cos(x: float) -> float:
  37. return _math.cos(x)
  38. def sin(x: float) -> float:
  39. return _math.sin(x)
  40. def tan(x: float) -> float:
  41. return _math.tan(x)
  42. def degrees(x: float) -> float:
  43. return _math.degrees(x)
  44. def radians(x: float) -> float:
  45. return _math.radians(x)
  46. def cosh(x: float) -> float:
  47. return _math.cosh(x)
  48. def sinh(x: float) -> float:
  49. return _math.sinh(x)
  50. def tanh(x: float) -> float:
  51. return _math.tanh(x)