Using the Calculator
The Calculator control contains buttons for entering numeric constants and operators into an expression. Double-clicking fields, constants, operators, and functions will insert them into an expression.
Operator |
Description |
---|---|
Backspace |
Used to go back one space in an expression |
pi | Pi, a mathematical constant which is the ratio of the circumference of a circle to its diameter |
e | Euler's Number, a mathematical constant that is the base of the natural logarithm |
/ | Division |
* | Multiplication |
+ | Addition |
- |
Subtraction |
x^y | Power of (e.g., x^2 is x to the power of 2) |
Mod |
Modulo, the remainder of an operation |
; |
Semicolon, used at the end of expressions |
= | Assignment operator |
() | Parentheses, to represent hierarchy in an expression |
. | Decimal point |
if\else | Conditional statement to take action if a condition is true, otherwise, take a different action |
if\else if\else | Multiple conditional statement to take action if a condition is true, otherwise, take a different action |
== | Equal to, in a math function |
!= | Not equal to |
&& | Logical and |
|| | Logical or |
> | Greater than |
>= | Greater than or equal to |
< | Less than |
<= | Less than or equal to |