feat(v1.4.1): add native proposal module, Lover Accept Checker AI, and modules documentation catalog
This commit is contained in:
1 parent
4895c201c1
commit
b7ae6c9725
20 files changed
+600
-34
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# 📐 AiraLang `math` Module
|
||||
> **Mathematical Functions & Constants**
|
||||
|
||||
## Import
|
||||
```aira
|
||||
import "math";
|
||||
```
|
||||
|
||||
## Methods & Constants
|
||||
- `math.sqrt(x)`: Square root.
|
||||
- `math.floor(x)`, `math.ceil(x)`: Rounding down and up.
|
||||
- `math.abs(x)`: Absolute value.
|
||||
- `math.round(x, [decimals])`: Rounding.
|
||||
- `math.pow(base, exp)`: Exponentiation.
|
||||
- `math.random(low, high)`: Generate random integer or float.
|
||||
- `math.pi`: $\pi$ constant (~3.14159265).
|
||||
- `math.e`: Euler constant (~2.7182818).
|
||||
|
||||
## Example
|
||||
```aira
|
||||
import "math";
|
||||
|
||||
say "Hypotenuse: " + math.sqrt(math.pow(3, 2) + math.pow(4, 2)); # 5.0
|
||||
```
|
||||
Reference in new issue
Block a user