python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to pass more than one function to the sympy.plot
This code works:
import sympy as sy
x = sy.symbols('x')
sy.plot(x, x**2, x**3, (x, -5, 5))
This also works:
fun=x
sy.plot(fun, (x, -5, 5))
This does not work:
fun=x, x**2, x**3
sy.plot(fun, (x, -5, ...

Basheer Algohi
Votes: 0
Answers: 1
Plot symbolic function and point in one figure in `python`
import sympy
import matplotlib.pyplot as plt
from sympy import plot
x=sympy.symbols('x')
f=(x**2-4)**2/8-1
plot(f,(x,0,3),xlabel='x',ylabel='y',label='$f(x)$')
plt.scatter(2,-1,label="titik optim...

Ongky Denny Wijaya
Votes: 0
Answers: 1
Sympy holds function, instead of returning float
I am working on a school project, and got an error which I don't know how to solve. While using Sympy to get the partial derivatives of a function and later entering a x and y value, I am not able to ...
coen paassen
Votes: 0
Answers: 0