Qalqulator

A calculator that uses (and outputs) rational numbers wherever possible.

The only operation that causes the output to revert to a floating point is exponentiation with fractional exponents.

Installation

Using Cargo

  1. Install Rust.
  2. Run the following command in your terminal:

    bash cargo install qalqulator

Using pre-built binaries

Pre-built binaries are available on the releases page.

Example usage

```bash $ qalqulator

6 * 7 42 (12/11)^(4/2) 144/121 let x = 141 % 100 41 x + 0.5 83/2 to_float(x) + 1/2 41.5 x^(1/2) 6.4031242374328485 exit ```

Features

Additional features

This is a toy project that I built for my own needs over the course of a few hours. If you find it useful and would like to see additional features, please open an issue or a pull request.

Name

Qalqulator is a calculator over $\mathbb{Q}$, the set of all rational numbers.