Calculates the absolute value of a number.
Calculates the cube root of x.
Returns |x|
Calculates the length of the hypotenuse of a right-angled triangle with sides of length x and y. The hypotenuse is the value of the square root of the sums of the squares of x and y:
Calculates the distance of the point (x, y, z) from the origin (0, 0, 0) in three-dimensional space. The distance is the value of the square root of the sums of the squares of x, y, and z:
Gives the next power of two after val. T can be any built-in numerical type.
Evaluate polynomial A(x) = a0 + a1x + a2x2 + a3x3; ...
Compute square root of x.
Gives the last power of two before val. $(T) can be any built-in numerical type.
This is a submodule of std.math.
It contains classical algebraic functions like abs, sqrt, and poly.