update README with !calc pi() docs and date requirement
This commit is contained in:
parent
db809715d2
commit
9ab428ef9a
1 changed files with 9 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ A single-file IRC bot in C. Features a key-value store backed by SQLite3, weathe
|
||||||
- `libsqlite3` (loaded at runtime via `dlopen`)
|
- `libsqlite3` (loaded at runtime via `dlopen`)
|
||||||
- `curl` (for weather, forecast, and stock lookups)
|
- `curl` (for weather, forecast, and stock lookups)
|
||||||
- `bc` (for the calculator command)
|
- `bc` (for the calculator command)
|
||||||
|
- `date` (for timezone-aware time lookups)
|
||||||
- `opencode` (for AI queries)
|
- `opencode` (for AI queries)
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
@ -155,6 +156,14 @@ The calculator uses `bc -l` (POSIX arbitrary-precision calculator with the math
|
||||||
| `!calc 2^10` | `1024` |
|
| `!calc 2^10` | `1024` |
|
||||||
| `!calc 3^3` | `27` |
|
| `!calc 3^3` | `27` |
|
||||||
|
|
||||||
|
**Constants:**
|
||||||
|
|
||||||
|
| Expression | Description |
|
||||||
|
|---|---|
|
||||||
|
| `!calc pi()` | Pi (3.14159...) |
|
||||||
|
| `!calc pi()*2` | Circumference of a unit circle |
|
||||||
|
| `!calc pi()^2` | Pi squared |
|
||||||
|
|
||||||
**Math library functions** (enabled by `-l`):
|
**Math library functions** (enabled by `-l`):
|
||||||
|
|
||||||
| Expression | Description |
|
| Expression | Description |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue