Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Mathematical Functions in VEX: Difference between revisions

From kunz
Created page with "<syntaxhighlight lang='C++'> y = 1.0 / exp(x); </syntaxhighlight>"
 
No edit summary
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