Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 806 Bytes

vector.scalaroperations.getprincipalsquareroot.md

File metadata and controls

30 lines (17 loc) · 806 Bytes

Home > @josh-brown/vector > ScalarOperations > getPrincipalSquareRoot

ScalarOperations.getPrincipalSquareRoot() method

Returns the principal square root of a scalar.

Signature:

abstract getPrincipalSquareRoot(x: S): S | undefined;

Parameters

Parameter Type Description
x S

Returns:

S | undefined

The square root

Remarks

For real-valued scalar types, this should be the positive square root. For complex-values scalar types, this should be the root with a positive real part.