GNOME Calculator

Last updated
GNOME Calculator
Stable release
43.0.1 [1]   OOjs UI icon edit-ltr-progressive.svg / 16 September 2022;13 months ago (16 September 2022)
Repository
Written in C, Vala
Operating system Unix-like
Type Software calculator
License GPL-3.0-or-later
Website apps.gnome.org/app/org.gnome.Calculator   OOjs UI icon edit-ltr-progressive.svg

GNOME Calculator, formerly known as gcalctool, is the software calculator integrated with the GNOME desktop environment. It is programmed in C and Vala and part of the GNOME Core Applications.

Contents

Views

Notation

The GNOME calculator uses the common infix notation for binary functions, such as the four basic arithmetic operations. Unlike many other calculators, it uses prefix notation, not postfix notation for unary functions. So to calculate e.g. the sine of one, the user must push the keys sin+1+=, not 1+sin, as on many other calculators.

The decimal separator on the number pad is based on the general keyboard layout since version 3.12.3. [2]

Variable handling

Advanced, Financial, and Programming modes present features for storing and retrieving values labeled as variables. R is the symbol for variable, used on GUI buttons ←R (insert variable) and →R (assign variable).

Variable names are case-sensitive alphabetical string without spaces. Variable values are numerical strings.

Values are assigned to variable names by entering in the GUI text input/result field a variable name followed by 0 or more spaces, followed by the = character, followed by 0 or more spaces, followed by either a numeric value or an existing variable name, e.g. "x = 2" or "result = subtotal" (if subtotal was already assigned a numeric value). A numeric value is assigned to the first variable name. If the value was entered as an existing variable name rather than as a numeric value, the existing variable's value is assigned to the first variable name. Assignment to a variable name that does not exist creates the new variable by name with the assigned value. The →R (assign variable) GUI button shows a popup menu of existing variables (and the current value of each), to which selected variable is assigned the current numeric value displayed in the calculator, just as if that variable name were entered in the GUI text field followed by a =, followed by the numeric value.[ citation needed ]

Entering a variable name into the GUI text field substitutes the variable value for the variable name when the expression in the GUI text field is evaluated (e.g. when the keyboard ↵ Enter button or the = GUI button is pressed). The ←R (insert variable) GUI button shows a popup menu of existing variables (and the current value of each); the selected variable name is inserted (appended) into the GUI text field.[ citation needed ]

Two predefined variables are available from the ←R (insert variable) GUI button: ans and rand. ans contains the last "answer" value calculated by the calculator as a result. rand contains a random value between 0.0 and 1.0 (the value is not displayed; a rand variable is evaluated in an expression when calculating a result).

Variable names and values persist between launch and quit of the application.

See also

Related Research Articles

In mathematics and computing, the hexadecimal numeral system is a positional numeral system that represents numbers using a radix (base) of sixteen. Unlike the decimal system representing numbers using ten symbols, hexadecimal uses sixteen distinct symbols, most often the symbols "0"–"9" to represent values 0 to 9, and "A"–"F" to represent values from ten to fifteen.

<span class="mw-page-title-main">GNU Octave</span> Numerical analysis programming language

GNU Octave is a high-level programming language primarily intended for scientific computing and numerical computation. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with MATLAB. It may also be used as a batch-oriented language. As part of the GNU Project, it is free software under the terms of the GNU General Public License.

Scientific notation is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientific form or standard index form, or standard form in the United Kingdom. This base ten notation is commonly used by scientists, mathematicians, and engineers, in part because it can simplify certain arithmetic operations. On scientific calculators it is usually known as "SCI" display mode.

mIRC scripting language Scripting language embedded in mIRC

The mIRC scripting language is the scripting language embedded in mIRC and Adiirc, IRC clients for Windows but work with WiNE for Linux.

<span class="mw-page-title-main">HP-65</span> Programmable handheld calculator with magnetic card reader

The HP-65 is the first magnetic card-programmable handheld calculator. Introduced by Hewlett-Packard in 1974 at an MSRP of $795, it featured nine storage registers and room for 100 keystroke instructions. It also included a magnetic card reader/writer to save and load programs. Like all Hewlett-Packard calculators of the era and most since, the HP-65 used Reverse Polish Notation (RPN) and a four-level automatic operand stack.

<span class="mw-page-title-main">Windows Calculator</span> Calculator application included in Microsoft Windows

Windows Calculator is a software calculator developed by Microsoft and included in Windows. In its Windows 10 incarnation it has four modes: standard, scientific, programmer, and a graphing mode. The standard mode includes a number pad and buttons for performing arithmetic operations. The scientific mode takes this a step further and adds exponents and trigonometric function, and programmer mode allows the user to perform operations related to computer programming. In 2020, a graphing mode was added to the Calculator, allowing users to graph equations on a coordinate plane.

TI-BASIC is the official name of a BASIC-like language built into Texas Instruments (TI)'s graphing calculators. TI-BASIC is a language family of three different and incompatible versions, released on different products:

A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML document, choosing the appearance of a page, or jumping to positions in multimedia content.

<span class="mw-page-title-main">HP-22S</span>

The HP-22S is an electronic calculator from the Hewlett-Packard company which is algebraic and scientific. This calculator is comparable to the HP-32S. A solver was included instead of programming. It had the same constraints as the 32S, lacking enough RAM for serious use. Functions available include TVM and unit conversions. Only single letter variable names are allowed. Marketed as a student calculator, the 22S uses infix notation rather than the reverse polish notation used on some higher-end HP calculators of the same era.

Engineering notation or engineering form (also technical notation) is a version of scientific notation in which the exponent of ten is always selected to be divisible by three to match the common metric prefixes, i.e. scientific notation that aligns with powers of a thousand, for example, 531×103 instead of 5.31×105 (but on calculator displays written without the ×10 to save space). As an alternative to writing powers of 10, SI prefixes can be used, which also usually provide steps of a factor of a thousand. On most calculators, engineering notation is called "ENG" mode as scientific notation is denoted SCI.

<span class="mw-page-title-main">Tandy Pocket Computer</span>

The Tandy Pocket Computer or TRS-80 Pocket Computer is one of a line of 1980s small pocket computers—calculator-sized programmable computing devices—sold by Tandy Corporation under the "Tandy" or "RadioShack TRS-80" brands.

The degree symbol or degree sign, °, is a glyph or symbol that is used, among other things, to represent degrees of arc, hours, degrees of temperature or alcohol proof. The symbol consists of a small superscript circle.

<span class="mw-page-title-main">Japanese input method</span> Methods used to input Japanese characters on a computer

Japanese input methods are used to input Japanese characters on a computer.

On personal computers with numeric keypads that use Microsoft operating systems, such as Windows, many characters that do not have a dedicated key combination on the keyboard may nevertheless be entered using the Alt code. This is done by pressing and holding the Alt key, then typing a number on the keyboard's numeric keypad that identifies the character and then releasing Alt.

<span class="mw-page-title-main">HP 35s</span> Programmable scientific calculator produced by Hewlett-Packard

The HP 35s (F2215A) is a Hewlett-Packard non-graphing programmable scientific calculator. Although it is a successor to the HP 33s, it was introduced to commemorate the 35th anniversary of the HP-35, Hewlett-Packard's first pocket calculator. HP also released a limited production anniversary edition with shiny black overlay and engraving "Celebrating 35 years".

<span class="mw-page-title-main">Software calculator</span> Calculator as a computer program

A software calculator is a calculator that has been implemented as a computer program, rather than as a physical hardware device.

<span class="mw-page-title-main">Formula calculator</span>

A formula calculator is a software calculator that can perform a calculation in two steps:

  1. Enter the calculation by typing it in from the keyboard.
  2. Press a single button or key to see the final result.

UML state machine, also known as UML statechart, is an extension of the mathematical concept of a finite automaton in computer science applications as expressed in the Unified Modeling Language (UML) notation.

<span class="mw-page-title-main">Numeric keypad</span> Section of computer keyboard

A numeric keypad, number pad, numpad, or ten key, is the palm-sized, usually-17-key section of a standard computer keyboard, usually on the far right. It provides calculator-style efficiency for entering numbers. The idea of a 10-key number pad cluster was originally introduced by Tadao Kashio, the developer of Casio electronic calculators.

<span class="mw-page-title-main">Qalculate!</span>

Qalculate! is an arbitrary precision cross-platform software calculator. It supports complex mathematical operations and concepts such as derivation, integration, data plotting, and unit conversion.

References

  1. "gnome-calculator 43.0.1" . Retrieved 16 December 2022.
  2. "gnome-calculator 3.12.3". 2013-06-15.