LinuxCommandLibrary

qalc

Command-line calculator with unit conversion

TLDR

Calculate expression

$ qalc "[2 + 2]"
copy
Convert units
$ qalc "[5 kilometers to miles]"
copy
Interactive mode
$ qalc
copy
Currency conversion
$ qalc "[100 USD to EUR]"
copy
Scientific calculation
$ qalc "[sin(45 degrees)]"
copy

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.
-t
Terse output.
-f FILE
Read from file.
-u MODE
Update exchange rates.

CAVEATS

Requires libqalculate. Supports currency exchange rates.

HISTORY

Qalculate was created as a multi-purpose calculator with unit support.

SEE ALSO

bc(1), calc(1), units(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community