Most programming languages give 2
as the answer to square root of 4
. However, there are two answers: 2
and -2
. Is there any particular reason, historical or otherwise, why only one answer is usually given?
The square root of a number always has two answers, one is positive and one is negative. There are two answers because the square of a negative and positive number is the same.
The square root of 4 is simply just 2 or in other words, 4 = 2. It is one of those numbers which we can call a perfect square number.
Since the number of iterations is 2, therefore the square root of 4 is 2.
Because:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With