Click or drag to resize

Constdef function

Constdef function let you define your custom Constants.

Syntax

Default syntax: constdef {constName} = {expression}. You can use any built-in function, operator and constant.

//Define halfPi as pi/2
constdef halfPi = pi/2

//Using expressions
constdef K = e^3*3*sin(pi)