Created
December 4, 2018 18:41
-
-
Save santiago-salas-v/82cef005ea67826a3a45ccfd35f51492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
t=np.linspace(2,7,20) | |
plt.plot(t, -1-np.exp(-t/2)+2*np.exp(-(t-2)/2)-(1-1/np.exp(1)), | |
'o', t, (1/(2*np.exp(1))-1)*(t-2), '.', [min(t),max(t)],[-2+1/np.exp(1)]*2,'-') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment