The number for which to calculate the square root.
The square root of the given number.
sqrt(9); // Returns 3
sqrt(100); // Returns 10
Calculates the square root of a given bigint value.
The bigint value for which to calculate the square root.
The square root of the given value.
sqrt(9n); // Returns 3n
sqrt(100n); // Returns 10n
Calculates the square root of a given value using the provided numerical implementation.
The type of the value.
The value for which to calculate the square root.
Optional
numerical: Numerical<T>The numerical implementation to use. Defaults to NumericalNumber if not provided.
The square root of the given value.
If x's type is neither number nor bigint, and no Numerical
sqrt(9); // Returns 3
sqrt(9n); // Returns 3n
sqrt(9, new Numerical<number>()); // Where Numerical<number>() is an implementation for numbers.
Generated using TypeDoc
Calculates the square root of a given number.