Equation Syntax
Vertex uses function declaration syntax. Define your function with variables, then write the expression.
Function Format
Basic format:
f(x, y) = expressionYou define the variables:
f(u, v) = sin(u) * cos(v)Any variable names work:
f(a, b) = a^2 + b^2The function name is always f, followed by exactly two variables in parentheses, then = and your expression.
Auto-Conversion
Vertex automatically converts common symbols as you type:
× → * (multiplication)
÷ → / (division)
− → - (minus)
2x → 2*x (implicit multiplication)
2(x+1) → 2*(x+1) (implicit multiplication)
Trigonometric Functions
sin(x) - Sine
cos(x) - Cosine
tan(x) - Tangent
asin(x) - Arc sine
acos(x) - Arc cosine
atan(x) - Arc tangent
atan2(y, x) - Two-argument arc tangent
Mathematical Functions
sqrt(x) - Square root
x^n - Power (x to the n)
exp(x) - Exponential (e^x)
log(x) - Natural logarithm
log10(x) - Base-10 logarithm
abs(x) - Absolute value
floor(x) - Round down
ceil(x) - Round up
round(x) - Round to nearest
Constants
pi - π ≈ 3.14159
e - Euler's number ≈ 2.71828
Example Equations
Sine surface:
f(x, y) = sin(x) * cos(y)Hyperbolic saddle:
f(x, y) = x^2 - y^2Elliptic paraboloid:
f(x, y) = x^2 + y^2Circular ripple:
f(x, y) = sin(sqrt(x^2 + y^2))Gaussian bell:
f(x, y) = exp(-(x^2 + y^2))