Skip to main content

Log

Returns the log (base 10) of the input.

Log block

Description​

The Log block returns the log (base 10) of the input. This is a code block from the Math drawer.

Usage​

Returns the log (base 10) of the input.

Syntax​

Inputs in this block:

  • A number

Example​

pH is the negative log of the concentration of Hydronium ions. This model simulates the change in pH of an aqueous solution as more acid is added to it. (Each 'H+' agent represents one millionth of a mole of Hydronium.)

Log example code
  • Ln - Returns the natural logarithm of a number
  • Power - Raises a number to a power