def bottom(x): bump = 5.0 * np.exp(-((x - 800)**2) / 12) trough = -3.3 * np.exp(-((x - 900)**2) / 600) return bump + trough