1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. def  f(x):
  4.     return x*x*x+2*x+1.2**x;
  5.  
  6. def plot_f():
  7.     x = np.linspace(1,100,1000)
  8.     y = f(x)
  9.  
  10.     # plt.figure()
  11.     plt.plot(x,y)
  12.     plt.grid()
  13.     plt.show()
  14.  
  15. plot_f()


image.png