Examples of Expressions
See also: Expressions, Understanding Expression Inheritance, Expression Elaboration, The Expression Builder
Type |
Description |
Example Syntax and Graph |
Simple Number |
Calculates a constant value in all scenario years |
3.1415 |
Simple Formula |
Calculates a constant value in all scenario years |
0.1 * 5970 |
Growth |
|
Growth(3.2%) |
Interp |
|
Interp(2000, 40, 2010, 65, 2020, 80)
|
Interp from Excel Data | ![]() |
Interp(mysheet.xlsx, myrange) |
Interp from the LEAP Cloud Data Server (LCDS) | ![]() |
Interp(LCDS, UNPopulation, Medium, ARG) |
Step
|
|
Step(2000, 300, 2005, 500, 2020, 700) |
Remainder |
|
Remainder(100) |
Branch and Variable References |
Any LEAP variable can be calculated as a reference to the values of another variable (with some restrictions). |
Passenger: Activity Level * 1.1 |
GrowthAs |
GrowthAs calculates a value in any given year based on its previous year's value and the rate of growth in another named branch, raised to the power of an elasticity. In this example the growth in one variable is projected to growth 10% faster than the growth in another key assumption variable named "income". |
GrowthAs(Key\Income,1.1) |