The exp native AI script function returns the exponent of the input value, which is equal to e^x.
(y)exp(x); // exp_f_f
distance = 2.0f;
(exp_distance)exp(distance);
This example code calculates the exponent of the distance
variable and stores the result in exp_distance
.
This function can be used to compute the exponential value of a given input, where e is the mathematical constant approximately equal to 2.718.