2022-06-13 13:49:34 -04:00
|
|
|
|
2024-03-04 20:03:32 -05:00
|
|
|
# quickmath (qm)
|
2022-06-13 13:49:34 -04:00
|
|
|
|
2023-06-14 12:12:54 -04:00
|
|
|
A small, pretty command line calculator.
|
2022-06-13 13:49:34 -04:00
|
|
|
|
2023-06-14 12:12:54 -04:00
|
|
|
Features expression evaluation, variable assignment, an interactive mode, pretty
|
|
|
|
output, and a variety of preset constants and functions focused on pure mathematics,
|
|
|
|
data science, and computer science.
|
2022-06-13 13:49:34 -04:00
|
|
|
|
2023-06-19 11:03:05 -04:00
|
|
|
More information is available on the [project wiki](https://git.vwolfe.io/valerie/qm/wiki).
|
2023-06-14 12:12:54 -04:00
|
|
|
|
2024-03-04 20:10:38 -05:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
### Manual Install
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Release Binary</summary>
|
|
|
|
Copy the compiled binary from the <a href="https://git.vwolfe.io/valerie/qm/releases">releases page</a>
|
|
|
|
to a directory in <code>$PATH</code>, such as <code>/usr/bin/</code>.
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Compile from Source</summary>
|
|
|
|
Compile using cargo with the command <code>cargo build --release</code> and copy
|
|
|
|
the file from <code>target/release/</code> to a directory in <code>$PATH</code>,
|
|
|
|
such as <code>/usr/bin/</code>.
|
|
|
|
</details>
|
|
|
|
|
|
|
|
### Package Managers
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Cargo: <code>quickmath</code></summary>
|
|
|
|
Install the package using Cargo with the command <code>cargo install quickmath</code>.
|
|
|
|
</details>
|
|
|
|
|
2023-06-14 12:12:54 -04:00
|
|
|
## Libraries
|
|
|
|
|
2023-06-20 12:34:49 -04:00
|
|
|
- [evalexpr](https://crates.io/crates/evalexpr) — expression evaluator
|
2024-08-29 19:17:52 -04:00
|
|
|
- [pico-args](https://crates.io/crates/pico_args) — argument parsing
|
|
|
|
- [rustyline](https://crates.io/crates/rustyline) — input handler
|
2023-06-20 12:34:49 -04:00
|
|
|
- [termion](https://crates.io/crates/termion) — ANSI formatting
|
2022-06-13 13:49:34 -04:00
|
|
|
|