In [1]:
%matplotlib inline
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
In [2]:
Vapp = np.array([0.997, 0.099, 1.997, 2.996, -2.998, -2, -1, 0.5])
Vout = np.array([0.192, 0.042, 0.362, 0.531, -0.48, -0.313, -0.144, 0.108])
In [3]:
Rs = Vout * 469 / (Vapp - Vout)
In [5]:
plt.plot(Vapp, Rs, 'bo')
Out[5]:
In [7]:
Va2 = np.array([-4, -3, -2, -1, -0.5, -0.1, 0, 0.1, 0.3, 0.5, 1, 2, 3, 4])
Vo2 = np.array([-4.684, -4.396, -4.106, -3.807, -3.657, -3.533, -3.505, -3.476, -3.415, -3.335, -3.198, -2.882, -2.565, -2.258])
In [11]:
Rs2 = (Vo2 + 5) * 469 / (Va2 - Vo2)
In [12]:
plt.plot(Va2, Rs2, 'bo')
Out[12]: