<< Click to Display Table of Contents >> Built-In MACROs |
![]() ![]() ![]() |
These are dynamic functions common in SD practice, and corresponding with their equivalents in Vensim. They are implemented as macros, so their internal variables may be seen if Model>Preferences permits it.
SMOOTH (input, delay time)
|
Returns exponential smooth of input over delay time.
|
SMOOTHI (input, delay time, initial value)
|
Returns exponential smooth of input over delay time with initial value.
|
DELAY1 (input, delay time)
|
Returns exponential delay of input. |
DELAY1I (input, delay time, initial value)
|
Returns exponential delay of input with initial value.
|
DELAY3 (input, delay time)
|
Returns third order exponential delay of input. |
DELAY3I (input, delay time, initial value)
|
Returns third order exponential delay of input with initial value.
|
TREND (input, average time, initial value)
|
Returns average fractional rate of growth or decline in the input. Initial value indicates initial trend of the growth/decline.
|
FORECAST (input, average time, horizon)
|
Returns forecast of the value of the input at given time and horizon.
|
NPV (input stream, discount rate, initial value, factor)
|
Returns net present value of input stream using discount rate, using initial value as starting value and all multiplied by factor.
|
NPVE (input stream, discount rate, initial value, factor) |
Returns net present value of input stream using discount rate, using initial value as starting value and all multiplied by factor. Calculates value of input stream at end of period and discount rate in discrete period. Same calculation sequence as in Excel. |