Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

LOG( x, y ) LOGarithm of x in base y

Scroll Prev Top Next More

Returns the logarithm of X for a given base.

 

Units:LOG(dimensionless, dimensionless) --> dimensionless (all terms must be dimensionless)

Examples

LOG( 4,2 ) is equal to 2.0, LOG( 4,16 ) is equal to 0.5

LOG( 0,5 ) is an ERROR (LOG of a number <= 0 is not defined).

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

See also: LN, EXP, and POWER.

Sample model: EXP + LN + LOG.mdl in FunctionExamples