2023-07-10 21:31:38 +08:00

100 lines
1.4 KiB
Python

import _math
pi = _math.pi
e = _math.e
def ceil(x: float) -> int:
return _math.ceil(x)
def fabs(x: float) -> float:
return _math.fabs(x)
def floor(x: float) -> int:
return _math.floor(x)
def fmod(x: float, y: float) -> float:
return _math.fmod(x, y)
def remainder(x: float, y: float) -> float:
return _math.remainder(x, y)
def trunc(x: float) -> float:
return _math.trunc(x)
def exp(x: float) -> float:
return _math.exp(x)
def log(x: float) -> float:
return _math.log(x)
def log2(x: float) -> float:
return _math.log2(x)
def log10(x: float) -> float:
return _math.log10(x)
def pow(x: float, y: float) -> float:
return _math.pow(x, y)
def sqrt(x: float) -> float:
return _math.sqrt(x)
def acos(x: float) -> float:
return _math.acos(x)
def asin(x: float) -> float:
return _math.asin(x)
def atan(x: float) -> float:
return _math.atan(x)
def atan2(x: float, y: float) -> float:
return _math.atan2(x, y)
def cos(x: float) -> float:
return _math.cos(x)
def sin(x: float) -> float:
return _math.sin(x)
def tan(x: float) -> float:
return _math.tan(x)
def degrees(x: float) -> float:
return _math.degrees(x)
def radians(x: float) -> float:
return _math.radians(x)
def cosh(x: float) -> float:
return _math.cosh(x)
def sinh(x: float) -> float:
return _math.sinh(x)
def tanh(x: float) -> float:
return _math.tanh(x)