Numbers and Mathematical Functions

Numbers can be entered in scientific notation.

Available mathematical functions:
sine: sin(x) x in radians rad or degree deg
cosine: cos(x) x in radians rad or degree deg
tangent: tan(x) x in radians rad or degree deg
cotangent: cot(x) x in radians rad or degree deg

arcsine (inverse sine): arcsin(x) x is dimensionless
arccosine (inverse cosine): arccos(x) x is dimensionless
arctangent: arctan(x) x is dimensionless
arccotangent: arccot(x) x is dimensionless

a to the power of b: a**b or a^b

exponential function
- e to the power of x: exp(x) x is dimensionless
natural logarithm to the basis e: log(x) x is dimensionless

square root: sqrt(x) x can have any unit
integer part: int(x) x is dimensionless
random number- between 0 and x: rand(x) x is dimensionless

Zero or more spaces between numbers and labels are subsituted by the times symbol if the situation is unambiguous.
a b = a*b
2a = 2*a
a2 = a2 Note: a2 is considered to be a label (no blank)
a 2 = a*2
2. 2 = 2.0*2
2.(1+b) = 2.0*(1+b)
a(1+b) = a(1+b) Note: this is considered to be a function call such as sin(1+b)
a (1+b) = a*(1+b)

Numbers immediately followed by a unit (such as 5s) are treated as measures.
1/5s = 1 / (5s) = 0.2*(1/s)
1/5 s = 1/5 * 1s = 0.2s
1/5^2 rad = 1/5^(2rad)
sqrt(4m^2) = 2m

Available Constants:

pi    3.1415927
g     9.8 m/s**2