About 14,000,000 results
Open links in new tab
  1. How to represent an infinite number in Python? - Stack Overflow

    Aug 23, 2024 · How can I represent an infinite number in python? No matter which number you enter in the program, no number should be greater than this representation of infinity.

  2. math - How can I convert radians to degrees with Python ... - Stack ...

    Mar 26, 2012 · 235 Python includes two functions in the math package; radians converts degrees to radians, and degrees converts radians to degrees. To match the output of your calculator you need:

  3. Why doesn't Python have a sign function? - Stack Overflow

    Jan 1, 2010 · I can't understand why Python doesn't have a sign function. It has an abs builtin (which I consider sign 's sister), but no sign. In python 2.6 there is even a copysign function (in math), but no …

  4. python - How do you round UP a number? - Stack Overflow

    May 5, 2017 · Elaboration: math.ceil returns the smallest integer which is greater than or equal to the input value. This function treats the input as a float (Python does not have strongly-typed variables) …

  5. python - How can I use "e" (Euler's number) and power operation ...

    Aug 25, 2016 · How can I write 1-e^ (-value1^2/2*value2^2) in Python? I don't know how to use power operator and e.

  6. What does the ** maths operator do in Python? - Stack Overflow

    What does this mean in Python: sock.recvfrom(2**16) I know what sock is, and I get the gist of the recvfrom function, but what the heck is 2**16? Specifically, the two asterisk/double asterisk ope...

  7. Exponentials in python: x**y vs math.pow(x, y) - Stack Overflow

    Jan 7, 2014 · The math.pow function had (and still has) its strength in engineering applications, but for number theoretical applications, you should use the built-in pow function.

  8. logarithm - Log to the base 2 in python - Stack Overflow

    Sep 15, 2010 · As to clarify math.log(x[, base]): Square brackets in documentation often indicate optional arguments.

  9. Is there an operator to calculate percentage in Python?

    I've recently learned that the " % " sign is used to calculate the remainder of an integer in Python. However I was unable to determine if there's another operator or method to calculate percent in Python.

  10. How to implement negative infinity in Python? - Stack Overflow

    Mar 2, 2013 · How to implement negative infinity in Python? Asked 12 years, 11 months ago Modified 1 year, 3 months ago Viewed 42k times