/crepl

An intuitive calculator REPL.

Primary LanguageCGNU General Public License v3.0GPL-3.0

CREPL

Calculator REPL

A command line calculator read-eval-print-loop, with intuitive mathematical notation as syntax.

Install

You'll need git (if cloning), a C compiler (e.g. gcc) and make (build-essential / base-devel).

Clone

Clone / Download this repositroy however you like, e.g.

git clone "https://github.com/Demonstrandum/crepl.git"

Then change directory into it:

cd crepl

Build & Install

make  # Builds and compiles the project.
sudo make install  # Installs the program system wide.

TODO

  • Throw errors on overflows until we implement bignums.
  • Imaginary numbers (using complex.h).
  • User defined functions.
  • Extend factorial to positive reals and complex values using Gamma function.
  • Garbage collection.
  • Numerical equation solver (polynomial, simultaneous, &c.).
  • Add more functionality, notably for calculus.
  • Symbol manipulation (?).
  • Extend numbers to include “Big Numbers” (“Big Integers” and “Big Decimals”/Rationals), numbers a currently limited to ~80bit floats and pointer-sized (likely 64bit) integeres.