2017

Table Of Contents
exp
Returns the constant e (the base of the natural logarithm) raised to the power of a given number. The exp
function is the inverse of the log function.
exp(Number)Syntax:
Arguments:
Number is the exponent applied to the base e.
Examples:
exp(0) returns 1.
exp(1) returns 2.7182.
exp(2) returns 7.3890.
exp(log(5)) returns 5.
exp(frame / 20) * 5 yields the following curve:
expm1
Returns the constant e (the base of the natural logarithm) raised to the power of a given number, minus 1.
The expm1 function is the inverse of the log1p function.
expm1(Number)Syntax:
Arguments:
Number is the exponent applied to the base e.
Examples:
expm1(0) returns 0.
expm1(1) returns 1.7182.
expm1(2) returns 6.3890.
expm1(log1p(5)) returns 5.
expm1(frame) returns the equivalent of exp(frame) - 1.
Defining Your Own Functions
Smoke allows you to define your own functions and use them like any other predefined function. By defining
functions in terms of existing functions, you can simplify the creation of complex expressions in your
animations.
Advanced Animation: About Expressions | 1269