Qalculate

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.

Installation

USE flags

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

+hardened Disable unsafe functions like 'command' and variables like 'uptime'.
curl Add support for client-side URL transfer library
gnuplot Enable support for gnuplot (data and function plotting)
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)

Emerge

root #emerge --ask sci-libs/libqalculate

GUI applications

Qalculate-gtk

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

Qalculate-qt

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

Usage

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