Difference between revisions of "Mathematical Functions in VEX"
From kunz
Views
Actions
Namespaces
Variants
Tools
(Created page with "<syntaxhighlight lang='C++'> y = 1.0 / exp(x); </syntaxhighlight>") |
|||
Line 1: | Line 1: | ||
<syntaxhighlight lang='C++'> | <syntaxhighlight lang='C++'> | ||
y = 1.0 / exp(x); | y = 0; // Constant | ||
y = x; // Linear | |||
y = pow(x,2); // same as: y = x*x; | |||
y = pow(2,x); // Exponential | |||
y = 1.0 / exp(x); // Reciprocal | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 13:11, 29 September 2021
y = 0; // Constant y = x; // Linear y = pow(x,2); // same as: y = x*x; y = pow(2,x); // Exponential y = 1.0 / exp(x); // Reciprocal