May-10-2020, 02:58 PM
There are no direct link to source code as is written in C.
Code is on GitHub if want to look mathmodule.c
In interactive shell it work the same.
Code is on GitHub if want to look mathmodule.c
In interactive shell it work the same.
>>> import math >>> >>> dir(math) ['__doc__', '__loader__', '__name__', '__package__', '__spec__', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'ceil', 'copysign', 'cos', 'cosh', 'degrees', 'e', 'erf', 'erfc', 'exp', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'ldexp', 'lgamma', 'log', 'log10', 'log1p', 'log2', 'modf', 'nan', 'pi', 'pow', 'radians', 'remainder', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'tau', 'trunc'] >>> >>> math.asin.__doc__ 'Return the arc sine (measured in radians) of x.' >>> help(math.sqrt) Help on built-in function sqrt in module math: sqrt(x, /) Return the square root of x.With pdir2 it look like this.