Difference between revisions of "Mathematical Functions in VEX"
From kunz
Views
Actions
Namespaces
Variants
Tools
Line 2: | Line 2: | ||
y = 0; // Constant | y = 0; // Constant | ||
y = x; // Linear | y = x; // Linear | ||
y = pow(x,2); // same as: y = x*x; | y = pow(x,2); // Quadratic, same as: y = x*x; | ||
y = pow(2,x); // Exponential | y = pow(2,x); // Exponential | ||
y = 1.0 / exp(x); // Reciprocal | y = 1.0 / exp(x); // Reciprocal | ||
y = pow(x,0.5); // Square Root, same as: y = sqrt(x); | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 13:19, 29 September 2021
y = 0; // Constant y = x; // Linear y = pow(x,2); // Quadratic, same as: y = x*x; y = pow(2,x); // Exponential y = 1.0 / exp(x); // Reciprocal y = pow(x,0.5); // Square Root, same as: y = sqrt(x);