TL;DR — Quick Summary

kalker is a scientific calculator in your terminal. Variables, functions, calculus, complex numbers, unit conversions, and LaTeX rendering — math without leaving the CLI.

kalker is math in your terminal. Variables, functions, calculus, units — a scientific calculator that thinks.

Installation

# macOS
brew install kalker

# Arch Linux
sudo pacman -S kalker

# Cargo
cargo install kalker

Usage

# Launch interactive REPL
kalker

# Basic math
>> 2 + 3 * 4          # 14
>> sqrt(144)           # 12
>> sin(pi / 2)         # 1

# Variables
>> x = 42
>> x * 2              # 84
>> r = 5
>> pi * r^2            # 78.5398...

# Functions
>> f(x) = x^2 + 2x + 1
>> f(3)                # 16
>> g(x, y) = x^2 + y^2
>> g(3, 4)             # 25

# Calculus - derivatives
>> f(x) = x^3
>> f'(2)               # 12  (derivative at x=2)

# Calculus - integrals
>> ∫(0, 1, x^2)        # 0.333...

# Complex numbers
>> (2 + 3i) * (1 - i)  # 5 + i

# Unit conversions
>> 100 °C to °F        # 212
>> 5 kg to lb          # 11.023
>> 1 mi to km          # 1.609

# One-shot mode
kalker "2^10"           # 1024

Summary

  • kalker is a scientific calculator with REPL, variables, and functions
  • Calculus support: derivatives and numerical integrals
  • Complex numbers, unit conversions, trigonometry
  • Syntax highlighting, tab completion, history
  • Written in Rust — also available as a web app (kalker.xyz)