AntlUtilsElixir.Math (antl_utils_elixir v1.4.4)

Useful math functions

Link to this section Summary

Functions

Arithmetic exponentiation

Link to this section Functions

Specs

pow(integer(), integer()) :: integer()

Arithmetic exponentiation

## Examples

  iex> Math.pow(2, 0)
  1
  iex> Math.pow(2, 3)
  8
  iex> Math.pow(2, -1)
  0.5
  iex> Math.pow(-1, 0)
  1
  iex> Math.pow(-2, 2)
  4
  iex> Math.pow(-2, 3)
  -8