Skip to content

SquareRoot() Source

Bases: MathFunction

Square root of each value: 9 gives 3.

Applying it to a negative value raises OutOfDomainError. Missing values stay missing.

Changed in version 0.2.0

Gives FLOAT64 for integers of any size.

Version history (1)

Added in version 0.1.0

Examples:

import numdaplot as ndp

areas = ndp.Array.from_list([4, 9, 16])
areas.apply(ndp.SquareRoot())
# Array([2., 3., 4.], dtype=FLOAT64)