Python繪製分段函數

1.繪製分段函數:y=4sin(4πt)-sgn(t-0.3)-sgn(0.72-t)html import numpy as np import matplotlib.pyplot as plt #繪製分段函數:y=4sin(4πt)-sgn(t-0.3)-sgn(0.72-t) def sgn(x): if x > 0: return 1 elif x < 0:
相關文章
相關標籤/搜索