mclc is a console calculator for complex numbers. It supports basic and advanced functions from the following categories:
- Arithmetic operations
- Trigonometric functions
- Logarithms
- Powers
Calculations are performed using a custom library and function engine.
- Boolean (returns 0/1): '<', '>', '<=', '>=', '==', '!='
- Mathematical: '+', '-', '*', '/', '^', '%', 'xor'
- Ternary: '?:'
- With one parameter: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, exp, ln, conj, umag, real, abs
- With two parameters: pow, atan2
- Special: log, root
- pi, e, phi, i, inf
mclc a=17 "b=sin(pi/2)" "(a>b)?pi:e"-> 3.14159mclc 2+2*2-> 6mclc --prec 15 pi-> 3.14159265358979mclc --polar "0.5(1+sqrt(3)i)"-> (1|60)mclc --triganam --degree "exp(pi/2*i)"-> 1(cos(90)+i*sin(90))
Compilation standard: C++23
Dependencies:
- MathWorker — a C++ library for parsing and evaluating mathematical expressions (pulled automatically via FetchContent)
-
Clone the repository
git clone https://github.com/Igorantivirus/mclc cd mclc -
Generate CMake
cmake -B build
-
Build
cmake --build build --config Release
-
Run
Run the
mclcexecutable from thebuildfolder.
MIT License