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

    Jan 20, 2022 · Python sqrt limit for very large numbers? square root of a number greater than 10^2000 in Python 3 Which is faster in Python: x**.5 or math.sqrt (x)? Why does Python give …

  2. Is there a short-hand for nth root of x in Python? - Stack Overflow

    144 nth root of x is x^(1/n), so you can do 9**(1/2) to find the 2nd root of 9, for example. In general, you can compute the nth root of x as: x**(1/n) Note: In Python 2, you had to do …

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

    There are at least 3 ways to do a square root in Python: math.sqrt, the '**' operator and pow (x,.5). I'm just curious as to the differences in the implementation of each of these. When it comes to …

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

    Mar 13, 2013 · Is there an integer square root somewhere in python, or in standard libraries? I want it to be exact (i.e. return an integer), and raise an exception if the input isn't a perfect …

  5. 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 …

  6. python - Finding the square root using Newton's method (errors ...

    Dec 29, 2016 · I'm working to finish a math problem that approximates the square root of a number using Newton's guess and check method in Python. The user is supposed to enter a …

  7. square root - Python sqrt limit for very large numbers? - Stack …

    Jan 31, 2015 · y = 10 * sqrt(70.707e2) A few notes: Python handles ridiculously large integer numbers without problems. For floating point numbers, it uses standard (C) conventions, and …

  8. Square root of complex numbers in python - Stack Overflow

    Square root of complex numbers in python Asked 9 years, 6 months ago Modified 9 years, 6 months ago Viewed 21k times

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

    May 16, 2016 · Just use numpy.sqrt() (see docs) on the resulting pd.Series: import numpy as np np.sqrt(football[['wins', 'losses']].sum(axis=1)) But there are of course several ways to …

  10. Writing your own square root function - Stack Overflow

    Oct 26, 2009 · How do you write your own function for finding the most accurate square root of an integer? After googling it, I found this (archived from its original link), but first, I didn't get it …