From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

Qalculate is a multi-purpose cross-platform desktop calculator that features a large library of customizable functions, unit calculations and conversion, physical constants, symbolic calculations (including integrals and equations), arbitrary precision, uncertainty propagation, interval arithmetic, plotting, and a user-friendly interface.


USE flags

USE flags for sci-libs/libqalculate A modern multi-purpose calculator library

curl Add support for client-side URL transfer library
gnuplot Enable support for gnuplot (data and function plotting)
hardened Disable unsafe functions like 'command' and variables like 'uptime'.
icu Enable ICU (Internationalization Components for Unicode) support, using dev-libs/icu
readline Enable support for libreadline, a GNU line-editing library that almost everyone wants
test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)


root #emerge --ask sci-libs/libqalculate

GUI applications


root #emerge --ask sci-calculators/qalculate-gtk


root #emerge --ask sci-calculators/qalculate-qt


Basic calculations

To perform basic calculations with qalculate, use it like a regular calculator:

user $qalc 1 + 1
1 + 1 = 2

Interactive mode

To enter qalculate's interactive mode, run qalc:

user $qalc

And start performing calculations:

user $qalc
> 1 + 1

  1 + 1 = 2


Using the previous result

To use the previous result in a new calculation, use the ans keyword:

user $qalc
> 1 + 1

  1 + 1 = 2

> ans + 2

  ans + 2 = 4


Performing currency conversions

Add curl to sci-libs/libqalculate's USE flags:

FILE /etc/portage/package.use/libqalculate
sci-libs/libqalculate curl

To convert between currencies:

user $qalc
> 1 usd to aud

  1 USD ≈ AUD 1.519918094

See also

* bc — arbitrary-precision fixed-point mathematical scripting language