1 unstable release

0.1.0 May 23, 2024

#929 in Math

MIT license

11KB
294 lines

usze

A reverse polish notation CLI calculator

Sometimes you just need to do some quick arithmetic. Takes input from stdin or cli arguments

Example

Interactive Mode

calc

enter to evaluate, ctrl-c to exit

Argument Mode

calc 2 3 + 4 /

Operators

  • + Add
  • - Minus
  • * or x Multiply
  • / Divide
  • ^ Pow
  • % Swap
  • # Duplicate
  • _ Drop
  • log Logarithm
  • get Set Register
  • set Get from Register

Features

  • basic operation
  • 256 registers
  • stdin / args interleaving
  • separate inprogress output to stderr

Dependencies

~225KB