qalc
Command-line calculator with unit conversion
TLDR
SYNOPSIS
qalc [options] [expression]
DESCRIPTION
qalc is the command-line interface to the Qalculate library, providing a powerful calculator with support for mathematical expressions, unit conversions, currency exchange, and symbolic computation. It handles everything from basic arithmetic to complex expressions involving trigonometric functions, logarithms, integrals, and physical constants.A standout feature is built-in awareness of physical units and currencies, allowing natural expressions like "5 kilometers to miles" or "100 USD to EUR". Exchange rates can be updated automatically. In interactive mode, qalc provides a persistent session with command history and tab completion.
PARAMETERS
EXPRESSION
Mathematical expression to evaluate.-t, --terse
Reduce output to just the result.-f FILE, --file FILE
Execute commands from a file first.-e, --exrates
Update exchange rates.-b BASE, --base BASE
Set the number base for results.-c, --color
Use colors to highlight expressions and results.-i, --interactive
Start in interactive mode.-l [TERM], --list [TERM]
List matching variables, functions, units, and prefixes.-s "OPTION VALUE", --set "OPTION VALUE"
Set a configuration option (e.g., -s "base 16").-p [BASE], --prog [BASE]
Start in programming mode with base conversion.-n, --nodefs
Do not load any functions, units, or variables from file.
CAVEATS
Requires libqalculate. Supports currency exchange rates.
HISTORY
Qalculate was created as a multi-purpose calculator with unit support.
