27 lines
431 B
Python

from scipy.integrate import odeint
import matplotlib.pyplot as plt
import numpy as np
import pylab as pl
import math
#plot f(x) vs. x
x = np.arange(-4.0,4.0,0.01)
fx = 4*x**2 - 16
zerox = 0.*x
#Create plot env
f = plt.figure()
plt.grid(True)
f.set_figwidth(8)
f.set_figheight(8)
#plot some stuff
plt.plot(x,fx,'g-',x,zerox,'b-')
plt.xlabel('x',fontsize = 15)
plt.ylabel('y', fontsize = 15)
plt.savefig("2024-09=09/ex1.png")