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

qoh/ca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Arbitrary precision calculator REPL in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages