Skip to main content

Ln

Returns the natural log of the input.

Ln block

Description​

The Ln block returns the natural log of the input. This is a code block from the Math drawer.

Usage​

Returns the natural log of the input.

Syntax​

Inputs in this block:

  • A number

Example​

This models the change in entropy for the gas, Argon (Ar). The initial and final states are configurable via sliders that the user can manipulate. The calculation for the change in entropy is continuous, meaning that as the slider values are changed, the entropy calculation will run automatically. The equation to calculate the change in entropy uses the ln function which is employed below.

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