SimpleCalc Documentation

Constants
Functions
Boolean Operations

Constants

The following constants are defined in the calculator:

true: 1.0
false: 0.0
e: 2.718281828459045
pi: 3.141592653589793

Functions

abs(x): the absolute value of x
acos(x): arccosine of x
asin(x): arcsine of x
atan(x): arctangent of x
ceil(x): ceiling of x, the smallest integer bigger or equal to x
cos(x): cosine of x
cot(x): cotangent of x
csc(x): cosecant of x
exp(x): the number e raised to the x power (equivalent to e^x)
floor(x): floor of x, the biggest integer smaller or equal to x
ln(x): natural logarithm of x
log(x): log base 10 of x
max(x,y): returns the maximum of x and y
min(x,y): returns the minimum of x and y
pow(x, y): x raised to the y power (equivalent to x^y)
random(): a random number between 0 and 1
sec(x): secant of x
sin(x): sine of x
sqrt(x): square root of x (equivalent to x^.5)
tan(x): tangent of x
todegrees(r): converts r radians to degrees
toradians(d): converts d degrees to radians
perm(n, m): the permutation nPm = n!/(n-m)!
comb(n, m): the combination nCm = n!/m!(n-m)!
fact(n): n factorial (n!)

Boolean Operations

The constant 'true' equals 1.0, 'false' = 0.0.
Conversely 0.0 is false, and any nonzero value is evaluated as true.
You can perform the following operations and comparisons on booleans:
!b: NOT b
~b: NOT b (equivalent to !b)
a||b: a OR b, not exclusive (returns true if one or both members are true)
a&&b: a AND b
a==b: a EQUALS b
a!=b: a NOT EQUAL b
a~=b: a NOT EQUAL b (equivalent to a!=b)
a<=b: a LESS THAN OR EQUAL b
a>=b: a GREATER THAN OR EQUAL b
a<b: a LESS THAN b
a>b: a GREATER THAN b