kcl_lib::std

Module math

source
Expand description

Functions related to mathematics.

Functions§

  • Compute the absolute value of a number.
  • Compute the arccosine of a number (in radians).
  • Compute the arcsine of a number (in radians).
  • Compute the arctangent of a number (in radians).
  • Compute the smallest integer greater than or equal to a number.
  • Compute the cosine of a number (in radians).
  • Return the value of Euler’s number e.
  • Compute the largest integer less than or equal to a number.
  • Compute the natural logarithm of the number.
  • Compute the logarithm of the number with respect to an arbitrary base.
  • Compute the base 2 logarithm of the number.
  • Compute the base 10 logarithm of the number.
  • Compute the maximum of the given arguments.
  • Compute the minimum of the given arguments.
  • Return the value of pi. Archimedes’ constant (π).
  • Compute the number to a power.
  • Compute the remainder after dividing num by div. If num is negative, the result will be too.
  • Compute the sine of a number (in radians).
  • Compute the square root of a number.
  • Compute the tangent of a number (in radians).
  • Return the value of tau. The full circle constant (τ). Equal to 2π.
  • Converts a number from radians to degrees.
  • Converts a number from degrees to radians.