Equation Syntax
Vertex uses standard mathematical notation. Equations are evaluated using the mathjs library with a secure sandbox.
Variables
u - First parameter (0 to 2π)
v - Second parameter (0 to 2π)
x, y, z - Cartesian coordinates
t - Time parameter
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
pow(x, n) - Power (x^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
Saddle surface:
u^2 - v^2Wave pattern:
sin(u) * cos(v)Paraboloid:
u^2 + v^2Ripple effect:
sin(sqrt(u^2 + v^2))