calc is a small, fast, and extensible command-line calculator written in C, designed as a simple UNIX-style inline tool with modular architecture. It supports basic arithemtic operators and a growing set of mathematical functions. Its codebase is split into clean modules (src/,include/) for easy extension, and it includes a proper calc(1) man page for system-wide integration.
- Arithmetic operators:"
+ - * / - Math functions:
sqrt,sin,cos,tan,log,log10,exp,abs - Modular design: add new operators or functions easily
- Makefile with build, install and uninstall targets
makesudo make installsudo make uninstallBinary operations:
calc <number> <op> <number>Unary functions:
calc <function> <number>Examples:
calc 5 + 3
calc sqrt 9
calc sin 1.57