Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

POWER(BASE, X) Value Raised to a POWER

Scroll Prev Top Next More

Returns BASE to the power of X.  Same as BASE^X

The power function and the exponentiation operator both test the exponent to see if it is an integer.  If it is an integer, it computes the result exactly.  If the exponent is not an integer, the power function is equivalent to EXP(X*LN(BASE)).

 

Units: POWER(dimensionless,dimensionless) --> dimensionless (all arguments must be dimensionless).

If the power is .5, 1, 2, 3 or 4 the units are taken to the power (if possible).  Any other powers require dimensionless units.

Examples

POWER(1,100) is equal to 1.0.

POWER(-2,2) is equal to 4.0.

POWER(2,3) is equal to 8.0.

POWER(A,LOG(X,A)) is equal to X (by definition). 

Availability: Not PLE or PLE Plus – use ^ instead.

See also: LN, EXP, and LOG.

Sample model: POWER.mdl in FunctionExamples