mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
101 lines
2.3 KiB
Python
101 lines
2.3 KiB
Python
from PikaObj import *
|
|
|
|
|
|
class Operator(TinyObj):
|
|
def plusInt(self, num1: int, num2: int) -> int: ...
|
|
def plusFloat(self, num1: float, num2: float) -> float: ...
|
|
def minusInt(self, num1: int, num2: int) -> int: ...
|
|
def minusFloat(self, num1: float, num2: float) -> float: ...
|
|
def equalInt(self, num1: int, num2: int) -> int: ...
|
|
def equalFloat(self, num1: float, num2: float) -> int: ...
|
|
def graterThanInt(self, num1: int, num2: int) -> int: ...
|
|
def graterThanFloat(self, num1: float, num2: float) -> int: ...
|
|
def lessThanInt(self, num1: int, num2: int) -> int: ...
|
|
def lessThanFloat(self, num1: float, num2: float) -> int: ...
|
|
def AND(self, flag1: int, flag2: int) -> int: ...
|
|
def OR(self, flag1: int, flag2: int) -> int: ...
|
|
def NOT(self, flag: int) -> int: ...
|
|
def __str__(self) -> str: ...
|
|
def __del__(self): ...
|
|
|
|
class Math(TinyObj):
|
|
def __init__(self):
|
|
pass
|
|
|
|
def ceil(self, x:float) ->int:
|
|
pass
|
|
|
|
def fabs(self, x:float) ->float:
|
|
pass
|
|
|
|
def floor(self, x:float) ->int:
|
|
pass
|
|
|
|
def fmod(self, x:float,y:float) ->float:
|
|
pass
|
|
|
|
def remainder(self ,x:float, y:float) ->float:
|
|
pass
|
|
|
|
def trunc(self, x:float) ->float:
|
|
pass
|
|
|
|
#幂函数和对数函数
|
|
|
|
def exp(self, x:float) ->float:
|
|
pass
|
|
|
|
def log(self, x:float) ->float:
|
|
pass
|
|
|
|
def log2(self, x:float) ->float:
|
|
pass
|
|
|
|
def log10(self, x:float) ->float:
|
|
pass
|
|
|
|
def pow(self, x:float, y:float) ->float:
|
|
pass
|
|
|
|
def sqrt(self, x:float) ->float:
|
|
pass
|
|
|
|
#三角函数
|
|
def acos(self, x:float) ->float:
|
|
pass
|
|
|
|
def asin(self, x:float) ->float:
|
|
pass
|
|
|
|
def atan(self, x:float) ->float:
|
|
pass
|
|
|
|
def atan2(self, x:float,y:float) ->float:
|
|
pass
|
|
|
|
def cos(self, x:float) ->float:
|
|
pass
|
|
|
|
def sin(self, x:float) ->float:
|
|
pass
|
|
|
|
def tan(self, x:float) ->float:
|
|
pass
|
|
|
|
#角度转换
|
|
def degrees(self, x:float) ->float:
|
|
pass
|
|
|
|
def radians(self, x:float) ->float:
|
|
pass
|
|
|
|
#双曲函数
|
|
def cosh(self, x:float) ->float:
|
|
pass
|
|
|
|
def sinh(self, x:float) ->float:
|
|
pass
|
|
|
|
def tanh(self, x:float) ->float:
|
|
pass
|
|
|