Calculator

Expressions

Calculations are performed upon valid expressions. Expressions can contain numbers, variables, the constant PI, operators, functions and parentheses.

Assignment

The calculator operates in the context of the currently open document.

To calculate an expression myExpression and assign the result to a new variable myVariable, type in:

myVariable = myExpression

and click Evaluate. The variable name must be unique in the context of the currently open document. A new record will be added to the notepad. The newly created variable can be used in subsequent calculations and references.

If no document is open, the numeric result of the calculation will be displayed. No new variable will be created.

Operators

The following operators are supported:

  • + (add)
  • - (negate, subtract)
  • * (multiply)
  • / (divide)
  • ^ (power operator)

Functions

The following functions are supported:

  • sqrt (square root)
  • sin
  • cos
  • tan
  • asin
  • acos
  • atan

Arguments to functions are taken into parentheses.

Examples

Calculate the side of a cube whose volume is myVolume:

mySide = myVolume ^ (1 / 3)

Calculate the side adjacent to angle myAngle in a right triangle whose hypothenuse is myHypothenuse:

mySide = myHypothenuse * cos(myAngle)

See also: