SQRT function

The SQRT function in Excel returns the square root of a number. The square root of a number xx is the value yy such that y2=xy^2 = x.


Syntax

=SQRT(number)

Parameters

  • number (required): The number for which you want to calculate the square root. This number must be greater than or equal to 0, as the square root of negative numbers is undefined in the real number system (it results in a complex number).

Key Points

  1. Positive Numbers: The square root of a positive number is a real number.
  2. Zero: The square root of 0 is 0.
  3. Negative Numbers: The SQRT function cannot be used with negative numbers because it will return a #NUM! error. To calculate the square root of a negative number, you can use the IMAGINARY or COMPLEX functions for complex numbers.
  4. Non-Negative Input: The input must be a non-negative number (zero or positive). Negative inputs will return an error.

Examples

  1. Calculate the square root of 16:
    =SQRT(16)
    

    Result: 4 (since 16=4\sqrt{16} = 4)

  2. Calculate the square root of 25:
    =SQRT(25)
    

    Result: 5 (since 25=5\sqrt{25} = 5)

  3. Calculate the square root of 0:
    =SQRT(0)
    

    Result: 0 (since 0=0\sqrt{0} = 0)

  4. Square root of a number in cell A1:
    =SQRT(A1)
    
  5. Attempt to calculate the square root of a negative number:
    =SQRT(-4)
    

    Result: #NUM! error, because the square root of a negative number is undefined in real numbers.


Notes

  • Handling Errors: If you are dealing with negative numbers and want to handle them gracefully, you can use the IF function to check if the number is negative before attempting the square root:
    =IF(A1<0, "Error", SQRT(A1))
    
  • Complex Numbers: For the square root of a negative number, you can use the IMAGINARY or COMPLEX functions to handle complex numbers, which may be necessary in fields such as electrical engineering or physics.

Related Functions

  • POWER: You can use POWER(number, 0.5) to calculate the square root of a number, as the square root is equivalent to raising the number to the power of 0.5.
  • ABS: If you need the square root of the absolute value of a number (even for negative numbers), you can use SQRT(ABS(number)).
  • PI: In calculations where you need to use the square root of π or other constants.

The SQRT function is commonly used in various fields, such as mathematics, physics, and finance, for calculations involving distances, geometries, and standard deviations.

Leave a Reply 0

Your email address will not be published. Required fields are marked *