antl_utils v0.4.1 AntlUtils.Elixir.Math

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