Square root any nonnegative number, then the principal square root of −"x" is The right side (as well as its negative) is indeed a square root of −"x", since For every non-zero complex number "z" there exist precisely two numbers "w" such that : the principal square root of "z" (defined below), and its negative. There are two complex numbers that square to a given arbitrary non-zero imaginary number formula_11 with real formula_12 where the two-digit pattern {3, 6} repeats over and over again in the partial denominators. Since , the above is also identical to the following generalized continued fractions: The
Square root of precision is equivalent to that of multiplying two "n"-digit numbers. Another useful method for calculating the square root is the shifting nth root algorithm, applied for . The name of the square root function varies from programming language to programming language, with codice_1 (often pronounced "squirt" ) being common, used in C, C++, and derived languages like JavaScript, PHP, and Python. The square of any positive or negative number is positive, and the square of 0 is 0. Therefore, no negative number can have a real square root. However, it is possible to work with a more inclusive set