Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (21 loc) · 877 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 877 Bytes

ca

ca is an arbitrary precision calculator. It can do simple linear math with fully accurate results, and exposes this with a simple REPL.

Features

  • Basic operators (+ - * / % ^ =)
  • No loss of precision, accurate representation of repeating decimals
  • Implicit multiplication (adjacent products) with incorrect precedence
  • Variables and variable binding (a := 2b, b := .5)
  • Partial evaluation, leaving unknowns and recursive definitions in place
  • Partial Unicode glyph support
  • Function application with or without parens (floor 3.5)
  • An incomplete set of functions (floor, ceil, round, trunc, fract, abs)
  • Half-baked functionality: sets (like (1,2,3) or ())

Guide

To try ca, just clone the repository and run cargo run with Rust stable:

$ git clone https://github.com/qoh/ca
$ cd ca
$ cargo run

Contributing

Please and thanks.