mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
876 B
876 B
icon | label |
---|---|
package | math |
math.e
2.718281828459045
math.pi
3.141592653589793
math.log(x)
Return the natural logarithm of x
.
math.log10(x)
Return the base-10 logarithm of x
.
math.log2(x)
Return the base-2 logarithm of x
.
math.sin(x)
Return the sine of x
.
math.cos(x)
Return the cosine of x
.
math.tan(x)
Return the tangent of x
.
math.isnan(x)
Return True
if x
is a NaN (not a number), and False
otherwise.
math.isinf(x)
Return True
if x
is positive or negative infinity, and False
otherwise.
math.fabs(x)
Return the absolute value of x
.
math.floor(x)
Return the largest integer value less than or equal to x
.
math.ceil(x)
Return the smallest integer value greater than or equal to x
.
math.sqrt(x)
Return the square root of x
.