About 191,000 results
Open links in new tab
  1. python - Squaring all elements in a list - Stack Overflow

    I am told to Write a function, square(a), that takes an array, a, of numbers and returns an array containing each of the values of a squared. At first, I had def square(a): for i in a: prin...

  2. 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 the "wrong" …

  3. python - What do square brackets, " []", mean in function/class ...

    Mar 23, 2011 · The square brackets indicate that these arguments are optional. You can leave them out. So, in this case you are only required to pass the csvfile argument to csv.DictReader. If you would …

  4. Is there a library function for Root mean square error (RMSE) in python?

    Jun 20, 2013 · What is RMSE? Also known as MSE, RMD, or RMS. What problem does it solve? If you understand RMSE: (Root mean squared error), MSE: (Mean Squared Error) RMD (Root mean …

  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 math module …

  6. Square a number with functions in python - Stack Overflow

    Square a number with functions in python [duplicate] Asked 10 years, 1 month ago Modified 3 years, 8 months ago Viewed 3k times

  7. numpy - Plot Square Wave in Python - Stack Overflow

    Feb 1, 2021 · Im currently working on graphing a square wave in python using numpy and pylot. How would I plot a square wave function over multiple periods of T? I currently have: from scipy import …

  8. Draw a square in Python Turtle - Stack Overflow

    import turtle #acutally called turtle to draw a turtle beautiful also used to draw other stuff # to draw a square or eventually a turtle you need to do this things below # to draw a square you want to : move …

  9. 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 square. I tried u...

  10. python - Squaring a number using return values - Stack Overflow

    Sep 5, 2021 · Anyways, I'm working on a python assignment where I have to square a number using return values. Here's the instructions: Write a function to square a number using return values. …