trend(input, averageTime, initialTrend) is the system dynamics function that returns the average fractional growth rate (negative for decline) in the input.
Analogous to the Vensim function trend, see the detailed description here.
trend can be called in formulas of system dynamics variables.
averageTime -> time
initialTrend -> 1/time
trend() -> 1/time