Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Lookups

LOOKUP EXTRAPOLATE(lookup,x) LOOKUP and EXTRAPOLATE beyond vals

Scroll Prev Top Next More

Allows you to specify extrapolation of the extreme Lookup pairs when the input is out of range of the Lookup.  This also suppresses any out of range warning messages that might be generated.

Units: LOOKUP EXTRAPOLATE(units,dimensionless) --> units

Just as for normal Lookup usage the x argument is expected to be dimensionless.  If not, a warning is issued, but not an error.

Example

LOOK((0,1),(1,1),(2,2))

LOOKUP EXTRAPOLATE(LOOK,-1) is equal to 1.0

LOOKUP EXTRAPOLATE(LOOK,1.5) is equal to 1.5

LOOKUP EXTRAPOLATE(LOOK,2.5) is equal to 2.5

Availability: Not PLE or PLE Plus.

See also: VECTOR LOOKUP, Lookups

Sample model: LOOKUP functions.mdl in FunctionExamples