I'm the one who trying to do code with python math library and I found something nonsense in math library.
def acos(__x: _SupportsFloatOrIndex) -> float: ...
def acosh(__x: _SupportsFloatOrIndex) -> float: ...
def asin(__x: _SupportsFloatOrIndex) -> float: ...
def asinh(__x: _SupportsFloatOrIndex) -> float: ...
def atan(__x: _SupportsFloatOrIndex) -> float: ...
def atan2(__y: _SupportsFloatOrIndex, __x: _SupportsFloatOrIndex) -> float: ...
def atanh(__x: _SupportsFloatOrIndex) -> float: ...
At math library, this kind of function is all around but I cannot find any other that can do the math. I think this happened because math library need to fast so they need to use C language. So people wrote ellipsis to wrap up the function. But it turns out that ellipsis did not do anything and I cannot find any module that import C's math library. I trying to solve this problem for three days but I cannot find any proper answer. So these are my questions.
- Ellipsis is used to some kind of markdown job so C's math code to go?
- Is there any code in python's math library that can call C's math code?
- As it turns out, In this kind of function that only do 'type hints'(I guess), can be replaced by any other statements like 'pass' or something else. Then why people use ellipsis? Is there any reason or they just make a promise to use ellipsis to type hints function?