Home > @josh-brown/vector > ScalarOperations > getPrincipalSquareRoot
Returns the principal square root of a scalar.
Signature:
abstract getPrincipalSquareRoot(x: S): S | undefined;
Parameter | Type | Description |
---|---|---|
x | S |
Returns:
S | undefined
The square root
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.