kunz Mathematical Functions in VEX

Mathematical Functions in VEX

From kunz
Revision as of 22:33, 29 September 2021 by Admin (talk | contribs)
y = 0;            // Constant (value remains the same at all points in time)
y = x;            // Linear (value changes at a constant rate over time)
y = pow(x,2);     // Quadratic, same as: y = x*x;
y = pow(x,3);     // Cubic, same as: y = x*x*x;
y = pow(2,x);     // Exponential, these functions grow very rapidly. y = pow(M_E, x); y = exp(x);
y = 1.0/x;        // Reciprocal, with x in the denominator this will produce asymptotes at the axis
y = pow(x,0.5);   // Square Root, same as: y = sqrt(x);
y = log(x);       // Logarithmic, rate of growth diminishes over time