Files
TMA4135/exercise4/main.py
2025-10-08 17:13:09 +02:00

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")