blueloveTH d513a3b459 ...
2023-04-23 12:42:42 +08:00

61 lines
876 B
Markdown

---
icon: package
label: 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`.