log

Returns the logarithm of the input.

Syntax


floatExpr log(floatExpr x)

Parameters

  • x: a floating-point expression.

Description

The function log computes the logarithm of x.

The argument x is automatically constrained to be positive. Therefore if x cannot be positive then the model becomes infeasible.

Example


a = intVar(1..8);
b = intVar(1..8);
log(a) >= 2+log(b);