python homework——the 12th week

11.1 import numpy as npimport matplotlib.pyplot as plt def func(x): return (np.sin(x-2)**2)*np.exp(-x**2) x=np.linspace(0,2,100) plt.figure(figsize=(8,4)) plt.plot(x,func(x),label='$y=sin^2(x-2)*exp(-
相關文章
相關標籤/搜索