About 39,800 results
Open links in new tab
  1. How do I calculate square root in Python? - Stack Overflow

    Jan 20, 2022 · How to find integer nth roots? Is there a short-hand for nth root of x in Python? Difference between ** (1/2), math.sqrt and cmath.sqrt? Why is math.sqrt () incorrect for large …

  2. performance - Which is faster in Python: x**.5 or math.sqrt (x ...

    In python 2.6 the (float).__pow__() function uses the C pow() function and the math.sqrt() functions uses the C sqrt() function. In glibc compiler the implementation of pow(x,y) is quite …

  3. math - Integer square root in python - Stack Overflow

    Mar 13, 2013 · In case anyone visits this page in the future, the python module gmpy2 is designed to work with very large inputs, and includes among other things an integer square root function.

  4. How to perform square root without using math module?

    Jun 15, 2010 · I want to find the square root of a number without using the math module,as i need to call the function some 20k times and dont want to slow down the execution by linking to the …

  5. Exponentiation in Python - should I prefer - Stack Overflow

    64 math.sqrt is the C implementation of square root and is therefore different from using the ** operator which implements Python's built-in pow function. Thus, using math.sqrt actually gives …

  6. How is the square root function implemented? - Stack Overflow

    Feb 4, 2016 · Implementation in Python: The floor of the root value is the output of this function. Example: The square root of 8 is 2.82842..., this function will give output '2'

  7. Math module sqrt function python - Stack Overflow

    May 15, 2020 · Write a code segment that only imports sqrt from the math module. The code then prints out the square root for 81 and 9 respectively using the sqrt function math.sqrt(81)

  8. Python math module - Stack Overflow

    if the function is not a built-in, you have to import the module it is contained in. See python library, and the list of built-ins.

  9. python - Applying sqrt function on a column - Stack Overflow

    May 16, 2016 · Applying sqrt function on a column Asked 9 years, 6 months ago Modified 4 years, 6 months ago Viewed 114k times

  10. How to find out if a number is a perfect square without using sqrt ...

    Aug 1, 2019 · How to find out if a number is a perfect square without using sqrt function or ** in Python? [duplicate] Asked 6 years, 4 months ago Modified 3 years, 9 months ago Viewed 6k …