Generation

generate functionSat, 13 May 2023

make 3d field and make 3dcube display line 2d

import numpy as np import matplotlib.pyplot as plt def f(x): return x - 3 x = np.linspace(-10, 10, 100) y = f(x) plt.plot(x, y) plt.show()

Questions about programming?Chat with your personal AI assistant