About 112,000 results
Open links in new tab
  1. python - Where are math.py and sys.py? - Stack Overflow

    Sep 17, 2013 · The modules like math, time, gc are not written in python and as rightly said in above answers that they are somewhere (written or moduled) within python interpreter. If you …

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

    Aug 25, 2016 · import math x.append(1 - math.exp( -0.5 * (value1*value2)**2)) I have modified the equation by replacing 1/2 as 0.5. Else for Python <2.7, we'll have to explicitly type cast the …

  3. Simplest way to solve mathematical equations in Python

    Oct 29, 2009 · The SymPy symbolic math library in Python can do pretty much any kind of math, solving equations, simplifying, factoring, substituting values for variables, pretty printing, …

  4. Python math module - Stack Overflow

    How are you importing math? I just tried import math and then math.sqrt which worked perfectly. Are you doing something like import math as m? If so, then you have to prefix the function with …

  5. Good geometry library in python? - Stack Overflow

    I am looking for a good and well developed library for geometrical manipulations and evaluations in python, like: evaluate the intersection between two lines in 2D and 3D (if present) evaluate …

  6. math - How do I calculate square root in Python? - Stack Overflow

    Jan 20, 2022 · Here, the fastest method I would say is to just use math. To do this, you need to put this line at the top of your program: import math Then, this would be the syntax to check …

  7. Is there a Python library to list primes? - Stack Overflow

    May 23, 2017 · It is a Python library for symbolic mathematics. It provides several functions for prime. isprime(n) # Test if n is a prime number (True) or not (False).

  8. math - Inverse Cosine in Python - Stack Overflow

    So when i math.acos(x), python asks the kernal to look through that data table for whichever angle has a cosine of x, and when it finds it, it returns the first entry it appears with. and then …

  9. Python 3x : Importing Math library python - Stack Overflow

    When you import math, Python walks through the directories in sys.path and imports the first file called math.py (or a directory called math with an __init__.py file inside) that it sees. The first …

  10. 3d Math Library For Python - Stack Overflow

    Oct 13, 2009 · The pygame.math portion of pygame is indeed a math library and not an SDL wrapper. While it does not support projection, it is clean, and supports rotation and translation …

Refresh