#calculator #cli #conversion #math #tool

app fend

Arbitrary-precision unit-aware calculator

14 releases

0.1.14 Feb 14, 2021
0.1.13 Jan 19, 2021
0.1.11 Nov 27, 2020
0.1.7 Oct 14, 2020
0.1.1 Aug 31, 2020

#29 in Math

Download history 2/week @ 2021-01-09 19/week @ 2021-01-16 20/week @ 2021-01-23 5/week @ 2021-01-30 18/week @ 2021-02-06 150/week @ 2021-02-13 3/week @ 2021-02-20 3/week @ 2021-02-27 9/week @ 2021-03-06 8/week @ 2021-03-13 31/week @ 2021-03-20 31/week @ 2021-03-27 17/week @ 2021-04-03 20/week @ 2021-04-10 54/week @ 2021-04-17 3/week @ 2021-04-24

139 downloads per month

MIT license

585KB
8K SLoC

fend is an arbitrary-precision unit-aware calculator.

This is the cross-platform CLI for fend.

Unique features:

  • Arbitrary-precision arithmetic using rational numbers
  • Full support for complex numbers
  • 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 now available on the web at printfn.github.io/fend-website.

Installation

Packaging status

Install fend by running cargo install fend in your terminal. Alternatively you can download the latest stable binaries here. fend is also available in the AUR.

You can then run fend to start a REPL session:

$ cargo install fend
...
$ 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
> 1 lightyear to parsecs
approx. 0.3066013937 parsecs
> (x: 2x) pi
approx. 6.2831853071

License

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

fend optionally includes the GPLv3-licenced definitions.units and currency.units data files from GNU Units. This can be changed via the gpl feature defined in core/Cargo.toml.

Dependencies

~1.2–1.6MB
~29K SLoC