A command line calculator that supports user-defined variables, functions, and to some extent units.

GitHub Repo Download

>> f(x, y) = Σ(1, 3, (2sin4/x!)^y % n) + cos(60°)

>> a = 3

>> f(a, 2) / 8

0.0863645842

>> Γ(⌊3π+2⌋ + 2)

1.1060309421365242*10^8

>> Σ(0, 100000, 1/n!)

2.7182818284590455

Open a kalk session in a new tab

Features

Usage

All the calculator features and how they're used.

Operators


Completion for special symbols


You can type special symbols (such as √) by typing the normal function or constant name and pressing tab.

Variables


Variables are defined with the following syntax: name = value

Examples: x = 3/4

Functions


Functions are defined with the following syntax: name(param1, param2, etc.) = value

Examples: f(x) = 2x+3 A(x, y) = (xy)/2

They are used like this: name(arg1, arg2, etc.)

Examples: f(3) + 3 A(2, 3)

Predefined functions


Constants


Download

kalk officially runs on Linux, Windows, and macOS.

Download for Linux
Download for Windows
Download for macOS