7 lines
159 B
Python
7 lines
159 B
Python
from sympy.abc import x
|
|
from sympy.plotting import plot
|
|
|
|
f = (1 - 3**x) * x**2 + 4 * (x - 1) * 3**x + 4 * (1 - x)
|
|
|
|
plot(f, (x, -2, 3), xlabel="x", ylabel="y")
|