About 553,000 results
Open links in new tab
  1. Python program to solve quadratic equation - GeeksforGeeks

    Mar 20, 2024 · Using the cmath module to solve quadratic equations in Python. First, we have to calculate the discriminant and then find two solutions to the quadratic equation using cmath module. Python3

  2. python - Solving Quadratic Equation - Stack Overflow

    Mar 14, 2013 · 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 x = 1.

  3. Python Program For Solving Quadratic Equation (With Code)

    In this tutorial, we explored how to solve quadratic equations using a Python program. We covered the quadratic formula, the discriminant, and the logic behind handling different scenarios. By implementing the code provided and testing it with various inputs, you can efficiently solve quadratic equations and obtain the roots.

  4. 4 Easy Ways to Solve Quadratic Equations in Python - GeeksVeda

    Sep 6, 2023 · How to Solve Quadratic Equations in Python. In order to solve the quadratic equation in Python, you can use: The Quadratic Formula; Factoring Quadratic Equations; Completing Square Method; The Graphical Method; Let’s check out each of the listed approaches individually! 1. Using Quadratic Formula

  5. Write a Python program to solve quadratic equation - PySeek

    Feb 5, 2025 · Solve quadratic equations in Python using the quadratic formula. Step-by-step guide with code, explanation, and example outputs.

  6. Python Program to Solve Quadratic Equation - Naukri Code 360

    Mar 8, 2025 · In this article, we learned how to write a Python program to solve a quadratic equation using the quadratic formula. By taking coefficients as input, we calculated the roots of the equation using the discriminant method.

  7. Using Python to Solve the Quadratic Equation - Python Central

    In this example, we'll show you how to use Python to solve one of the more well-known mathematical equations: the quadratic equation (ax 2 + bx + c = 0).

  8. Solving Quadratic Equations with Python - Compucademy

    Explore how to use Python to solve quadratic equations and display the graphs of quadratic functions.

  9. Python Program To Solve Quadratic Equations (With Code

    In a Python program to solve quadratic equations, we can define a function, say, solve_quadratic(a, b, c), that takes the coefficients, a, b, and c, as input and returns the solutions using the quadratic formula. It calculates the discriminant, determines the type of roots based on its value, and computes the solutions accordingly, handling ...

  10. Python program to solve Quadratic equation - CodeSpeedy

    In this tutorial, we are going to learn how to solve the quadratic equation program in Python. The standard form of the quadratic equation is ax2+bx+c=0. Where a, b,c are real numbers.

Refresh