#calculator #cli #conversion #math #tool

app fend

Arbitrary-precision unit-aware calculator

37 releases (8 stable)

Uses new Rust 2021

1.1.1 Sep 23, 2022
1.0.5 Aug 13, 2022
1.0.4 Jul 22, 2022
1.0.1 Mar 19, 2022
0.1.11 Nov 27, 2020

#26 in Math

Download history 14/week @ 2022-06-12 5/week @ 2022-06-19 4/week @ 2022-06-26 34/week @ 2022-07-03 71/week @ 2022-07-10 60/week @ 2022-07-17 91/week @ 2022-07-24 44/week @ 2022-07-31 44/week @ 2022-08-07 36/week @ 2022-08-14 42/week @ 2022-08-21 4/week @ 2022-08-28 73/week @ 2022-09-04 41/week @ 2022-09-11 53/week @ 2022-09-18 24/week @ 2022-09-25

192 downloads per month

MIT license

410KB
11K SLoC

fend

build codecov crates.io downloads

fend is an arbitrary-precision unit-aware calculator.

Unique features:

  • Arbitrary-precision arithmetic using rational numbers
  • Full support for complex numbers
  • D&D-style dice rolls
  • Variables
  • Binary, octal, hexadecimal and all other bases between 2 and 36
  • Keep track of units, with support for SI, US and UK customary and many historical units
  • Emacs-style CLI shortcuts
  • Trigonometric functions
  • Lambda calculus

See the manual for more information.

Web Interface

fend is available on the web at printfn.github.io/fend.

Installation

The easiest way to install fend locally is via your package manager:

Package Manager Command
Homebrew brew install printfn/fend/fend
AUR (Arch Linux) yay -Syu aur/fend-bin
Nix nix-env -iA nixpkgs.fend
Cargo cargo install fend
Windows Package Manager winget install fend

Alternatively, you can manually download the latest stable binaries here.

Once fend is installed, run fend to start a REPL session:

$ fend
> 1 ft to cm
30.48 cm
>

Packages

Manual

You can find the fend manual here.

Examples

> 5'10" to cm
177.8 cm
> cos (pi/4) + i * (sin (pi/4))
approx. 0.7071067811 + 0.7071067811i
> 0b1001 + 3
0b1100
> 0xffff to decimal
65535
> 100 C to F
210 °F
> temperature = 30 °C
30 °C
> temperature to °F
86 °F
> roll d20
8
> roll 4d6
17

License

fend is MIT-licensed. See LICENSE.md for more information.

Dependencies

~9–17MB
~409K SLoC