Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
Go to file
2020-06-05 13:36:11 +02:00
kalk Set up foundation for parser unit testing and added test_var() and test_precedence() tests. 2020-06-05 13:36:11 +02:00
kalk_cli Removed self.advance() code duplication in lexer. 2020-06-04 20:09:43 +02:00
.gitignore Renamed to 'kalk'. 2020-06-04 19:43:43 +02:00
README.md Create README.md 2020-06-04 19:57:48 +02:00

kalk

Kalk is a CLI calculator that supports user-defined variables and functions. An example of what it can parse:

f(x, y) = sum(1, 3, (2sin4/x!)^y) + cos(n deg)
a = 3
f(a, 2)

>> 1.1899401098014355

Compiling

  1. Make sure you have diffutils gcc make and m4 installed.
  2. Go into the kalk_cli directory.
  3. Run cargo build --release
  4. Grab the binary from targets/release