Skip to content

Instantly share code, notes, and snippets.

@santiago-salas-v
Created December 4, 2018 18:41
Show Gist options
  • Save santiago-salas-v/82cef005ea67826a3a45ccfd35f51492 to your computer and use it in GitHub Desktop.
Save santiago-salas-v/82cef005ea67826a3a45ccfd35f51492 to your computer and use it in GitHub Desktop.
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