:math.sqrt() / abs()
Square root, powers, and absolute value.
Syntax
:math.sqrt(x) :math.pow(x,y) abs(x)
Description
Square root and powers are in Erlang's :math module (:math.sqrt, :math.pow). abs is used directly.
Example
Loading editor…
Expected output
9.0 1024.0 5
When to use?
Geometry, statistics, exponential calculations.