Math module

square

procedureSource

a * a, for any type with *.

Example↗
assert(square(3) == 9 && square(1.5) == 2.25);
square :: (a: $T) -> T

a times itself.

Parameters

a: $T
the value.

Returns

T

See also