Compute the square root of every element in nested numeric inputs.
Numeric.math.sqrt(value)Applies the square root across nested numeric inputs.
- Parameters:
value: Scalar, vector, or matrix input values
- Returns: Square roots matching the input nesting shape
- NumPy: Covers
np.sqrt,np.emath.sqrtthrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const value = Numeric.math.sqrt(9)
console.log(value)
// 3import Numeric from '@neabyte/numerix'
const values = Numeric.math.sqrt([4, 9])
console.log(values)
// [2,3]import Numeric from '@neabyte/numerix'
const values = Numeric.math.sqrt([[4, 9], [16, 25]])
console.log(values)
// [[2,3],[4,5]]import Numeric from '@neabyte/numerix'
const value = Numeric.math.sqrt(0.25)
console.log(value)
// 0.5