Numerical expressions

Numerical expressions may be any VBA-compatible expression of a double-result type.

For more detailed information, see the Macro Language Documentation.

Examples:

 

Expression

Result

sqr(4)

2

log(10)

2.302585092994

sin((355/113)/4)^2

0.50000008146034

 

Allowed expressions:

( )  parenthesis

+,-,*,/  add, subtract, multiply, divide

sqr()  square root

^  power

log()  natural logarithm

exp()  euler’s number to the power of the argument

sin(), cos(), tan() sine, cosine, tangent (taking rad as argument)

atn()  arc tangent