vivid v0.2.1 Vivid.Math

I made this because I was constantly importing a small selection of Erlang’s :math module, and then manually implementing degrees_to_radians/1 which got pretty annoying after a while.

Summary

Functions

See :math.cos/1

Convert degrees into radians

See :math.pi/0

See :math.pow/2

See :math.sin/1

See :math.sqrt/1

Functions

cos(x)

See :math.cos/1.

degrees_to_radians(degrees)

Convert degrees into radians.

Examples:

iex> 180 |> Vivid.Math.degrees_to_radians
:math.pi
pi()

See :math.pi/0.

pow(x, y)

See :math.pow/2.

sin(x)

See :math.sin/1.

sqrt(x)

See :math.sqrt/1.