About 251,000 results
Open links in new tab
  1. Graphing a Parabola using Matplotlib in Python - Stack Overflow

    May 31, 2015 · I am trying to graph a simple parabola in matplotlib and I am confused as to how I am supposed to plot points on the parabola. So far, this is what I have: import matplotlib.pyplot as plt a=[] b=[...

  2. Plot Mathematical Expressions in Python using Matplotlib

    Apr 17, 2025 · In this article, we will learn how to plot mathematical expressions in it. Lets start our work with one of the most simple and common equation Y = X² Y = X 2. We want to plot 100 points on X-axis. In this case, each and every value of Y is square of X value of the same index and then visualize it.

  3. Plot a Function y=f(x) in Python (w/ Matplotlib) - ScriptVerse

    Here, we will be learning how to plot a defined function $y=f (x)$ in Python, over a specified interval. We start off by plotting the simplest quadratic equation $y=x^ {2}$. Quadratic equations are second order polynomial equations of type $ax^ {2} + …

  4. Python Tutorial: How to Plot Quadratic Equations in Python?

    Oct 21, 2024 · In this tutorial, we explored how to plot quadratic equations in Python using libraries such as NumPy and Matplotlib. By following the steps outlined, you can easily visualize quadratic functions and gain insights into their characteristics.

  5. python - Graphing a parabola with inputs in matplotlib - Stack Overflow

    Jan 30, 2020 · so I've created a quadratic equation solver in python, and I want a graph to go along with it. I want this graph to depict the parabola. a = an input for a in quadratic equation. b = an input for b in quadratic equation. c = an input for c in quadratic equation. y = -b/2*a (vector)

  6. Plot Mathematical Functions - How to Plot Math Functions in Python

    Aug 28, 2021 · In this tutorial, we have learned how to plot different types of mathematical functions using Numpy and Matplotlib libraries. Hope you have understood the plotting process of different mathematical functions and are ready to experiment on your own.

  7. How to plot function in matplotlib - Altcademy Blog

    Jan 26, 2024 · Here’s how we can plot this in Python using Matplotlib: When you run this script, you should see a straight line crossing through the origin (0,0). Now, let's plot something a bit more complex—a quadratic function. A quadratic function can be written as y = ax^2 + bx + c. It forms a parabola when plotted.

  8. python - Plot quadratic function / model with matplotlib - Stack Overflow

    Sep 18, 2016 · I'm playing around with python and want to plot a quadratic linear regression with matplotlib. The problem is, that my plot ends up being a lot of connected lines/dots instead of just the one function:

  9. Draw a graph of a quadratic function in Python

    import matplotlib.pyplot as plt import numpy as np # -10 < x < 10 x = np.arange(-10, 10, 0.1) # a, b,Substitute each value for c a = int(input("a : ")) b = int(input("b : ")) c = int(input("c : ")) # y = ax^2 + bx + c y = a*x**2 + b*x + c #Plot execution to graph plt.plot(x, y) plt.show()

  10. Solving Quadratic Equations with Python - Compucademy

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

Refresh