GNOME Calculator, formerly known as gcalctool, is the
software calculator
A software calculator is a calculator that has been implemented as a computer program, rather than as a physical hardware device.
They are among the simpler interactive software tools, and, as such, they provide operations for the user to sele ...
integrated with the
GNOME desktop environment. It is programmed in
C and
Vala
Vala or VALA may refer to:
Religion and mythology
* Vala (Vedic), a demon or a stone cavern in the Hindu scriptures
* Völva, also spelled Vala, a priestess in Norse mythology and Norse paganism
Fiction
* Vala (Middle-earth), an angelic being in ...
and part of the
GNOME Core Applications
The GNOME Core Applications (also known as Apps for GNOME) are a software suite of software applications that are packaged as part of the standard free and open-source GNOME desktop environment. GNOME Core Applications have a consistent look and ...
.
Mathematics
GNOME Calculator uses the MPFR library for extended precision arithmetic. It can support complex number arithmetic, perform factorization of integers, and define new functions by composition.
Views
While most functionality can be accessed by typing the function name into the input, Calculator provides different views for convenience.
* ''Basic'' – interface for basic arithmetic, resembling a
desk calculator
An electronic calculator is typically a portable electronic device used to perform calculations, ranging from basic arithmetic to complex mathematics.
The first solid-state electronic calculator was created in the early 1960s. Pocket-sized ...
.
* ''Advanced'' – an interface with scientific functions, and support for custom variables. New functions can be defined by function composition.
* ''Financial'' – financial calculation and
currency conversion
In finance, an exchange rate is the rate at which one currency will be exchanged for another currency. Currencies are most commonly national currencies, but may be sub-national as in the case of Hong Kong or supra-national as in the case of ...
.
* ''Programming'' – a view with
bit manipulation
Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a word. Computer programming tasks that require bit manipulation include low-level device control, error detection and error correction, corr ...
operators and
radix
In a positional numeral system, the radix (radices) or base is the number of unique digits, including the digit zero, used to represent numbers. For example, for the decimal system (the most common system in use today) the radix is ten, becaus ...
conversion.
* ''Keyboard'' – most of the space is taken up by the output, with no on-screen buttons. Supports currency and
unit conversion
Conversion of units is the conversion of the unit of measurement in which a quantity is expressed, typically through a multiplicative conversion factor that changes the unit without changing the quantity. This is also often loosely taken to incl ...
.
* ''Conversion'' – A view for performing conversions between units.
Notation
The GNOME calculator uses the common
infix notation
Infix notation is the notation commonly used in arithmetical and logical formulae and statements. It is characterized by the placement of operators between operands—"infixed operators"—such as the plus sign in .
Usage
Binary relations are ...
for
binary function
In mathematics, a binary function (also called bivariate function, or function of two variables) is a function that takes two inputs.
Precisely stated, a function f is binary if there exists sets X, Y, Z such that
:\,f \colon X \times Y \right ...
s, such as the four basic arithmetic operations. Unlike many other calculators, it uses
prefix notation
Polish notation (PN), also known as normal Polish notation (NPN), Łukasiewicz notation, Warsaw notation, Polish prefix notation, Eastern Notation or simply prefix notation, is a mathematical notation in which operators ''precede'' their oper ...
, not
postfix notation
Reverse Polish notation (RPN), also known as reverse Łukasiewicz notation, Polish postfix notation or simply postfix notation, is a mathematical notation in which Operation (mathematics), operators ''follow'' their operands, in contrast to pr ...
for
unary function
In mathematics, a unary function is a function that takes one argument. A unary operator belongs to a subset of unary functions, in that its codomain coincides with its domain. In contrast, a unary function's domain need not coincide with its r ...
s. So to calculate e.g. the
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
of
one
1 (one, unit, unity) is a number, numeral, and glyph. It is the first and smallest positive integer of the infinite sequence of natural numbers. This fundamental property has led to its unique uses in other fields, ranging from science to sp ...
, the user must push the keys , not , as on many other calculators.
The decimal separator on the
number pad
A numeric keypad, number pad, numpad, or ten key,
is the calculator-style group of ten numeric keys accompanied by other keys, usually on the far right side of computer keyboard. This grouping allows quick number entry with right hand, ...
is based on the general keyboard layout since version 3.12.3.
Due to different styles of formatting decimal positions across the world, Calculator interprets both commas and periods as decimal separators. Consequently, using k-ary functions requires using a semicolon to separate the arguments.
See also
*
Comparison of software calculators
This is a list of notable software calculators.
Immediate execution calculators (button-oriented)
, -
Age Calculator (Gregorian & Hijri)ref>
, Public domain
, Web
, Date-level (Gregorian & Hijri)
, No
, No
, No
Expression or formula ca ...
*
KCalc
KCalc is a scientific software calculator integrated with the KDE Gear.
Functions
KCalc includes trigonometric functions, logic operations, saved previous results, copy and paste, a configure UI, and statistical computations. The history funct ...
References
External links
*
{{Calculator navbox
Software calculators
GNOME Core Applications
Software that uses GTK
Software that uses Meson
Free software programmed in C
Free software programmed in Vala