About 78,000 results
Open links in new tab
  1. How can I solve equations in Python? - Stack Overflow

    Jun 12, 2015 · Let's say I have an equation: 2x + 6 = 12 With algebra we can see that x = 3. How can I make a program in Python that can solve for x? I'm new to programming, and I looked at eval() and …

  2. Simplest way to solve mathematical equations in Python

    Oct 29, 2009 · 9 For inexact solutions, read up on linear programming and sequential quadratic optimization, then search for Python libraries that performs such optimizations for you. If the …

  3. Solve an equation using a python numerical solver in numpy

    Mar 30, 2014 · R - ((1.0 - np.exp(-tau))/(1.0 - np.exp(-a*tau))) = 0. I want to solve for tau in this equation using a numerical solver available within numpy. What is the best way to go about this? The values …

  4. solver - Python solve equation for one variable - Stack Overflow

    Aug 9, 2016 · I'm trying to solve an equation in python using SymPy. I have a generated equation (something like function = y(8.0-(y**3.0)) which I use with SymPy to create a new equation like this: …

  5. Is there a python module to solve linear equations?

    Jul 22, 2011 · I want to solve a linear equation with three or more variables. Is there a good library in python to do it?

  6. How can I solve a pair of nonlinear equations using Python?

    What's the (best) way to solve a pair of nonlinear equations using Python? (NumPy, SciPy, or SymPy) For example: x+y^2 = 4 e^x+ xy = 3 A code snippet which solves the above pair will be great. (The...

  7. solver - Solving system of equations in python - Stack Overflow

    Feb 15, 2019 · Solving system of equations in python Asked 6 years, 10 months ago Modified 1 year, 3 months ago Viewed 22k times

  8. I want solve this Equations in python - Stack Overflow

    Aug 1, 2022 · I want solve this Equations in python Asked 3 years, 4 months ago Modified 3 years, 4 months ago Viewed 1k times

  9. python - Solving Quadratic Equation - Stack Overflow

    2 Below is the Program to Solve Quadratic Equation. For Example: Solve x2 + 3x – 4 = 0 This quadratic happens to factor: x2 + 3x – 4 = (x + 4) (x – 1) = 0 we already know that the solutions are x = –4 and …

  10. python - Solving a cubic equation - Stack Overflow

    As part of a program I'm writing, I need to solve a cubic equation exactly (rather than using a numerical root finder): a*x**3 + b*x**2 + c*x + d = 0. I'm trying to use the equations from here. Ho...