124 lines
35 KiB
Plaintext
124 lines
35 KiB
Plaintext
|
{
|
|||
|
"cells": [
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 2,
|
|||
|
"id": "6939d4fc",
|
|||
|
"metadata": {},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"name": "stdout",
|
|||
|
"output_type": "stream",
|
|||
|
"text": [
|
|||
|
"82.65368591439173 44.342458599117634 21.767499999999995\n"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAf0AAAFzCAYAAAA0dtAgAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABaiklEQVR4nO3dd3zV1eH/8de5Nzd7swkZoICylSXiQMFRv+6tuC1Uq3W0Wq102EFrrdvagdXW/hpHWxeodaE4gcg0gCyBBEIgELLvTXLH+f1xLyEhCQRIcjPeTx553JvP53M/n3MvkHfO+ZxhrLWIiIhI1+cIdwFERESkfSj0RUREugmFvoiISDeh0BcREekmFPoiIiLdhEJfRESkm4gIdwHaWs+ePW1WVla4iyHSraxbtw6AoUOHhrkkIt3P0qVLd1trezW1r8uHflZWFkuWLAl3MUS6lSlTpgCwYMGCsJZDpDsyxuQ1t0/N+yIiIt2EQl9ERKSbUOiLiIh0Ewp9ERGRbkKhLyIi0k0o9EVERLoJhb6IiEg3odAXERHpJhT6IiIi3YRCX0REpJtQ6IuIiIRBdm42WU9k4filg6wnssjOzW7za3b5ufdFREQ6muzcbGbMnYHH5wEgryyPmfNmAjB95PQ2u65CX0REpA0FbIAtpVtYs2sNy7YtY9G3i3j/2/fxR/rBCfgBJ7i9bmbNn6XQFxER6egCNkBeaR5rdq0hd2cuC79dyKqdq9havRUv3rrjerh64I/w77vB7tx3jvyy/DYto0JfRERkP9m52cyaP4v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
|||
|
"text/plain": [
|
|||
|
"<Figure size 576x432 with 1 Axes>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"needs_background": "light"
|
|||
|
},
|
|||
|
"output_type": "display_data"
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"import matplotlib.pyplot as plt\n",
|
|||
|
"import numpy as np\n",
|
|||
|
"\n",
|
|||
|
"#5 mA\n",
|
|||
|
"#V\n",
|
|||
|
"voltage_5 = [25, 22, 19, 16, 13, 10, 8, 6.04, 3.95, 2.07, 0.48, -0.38, -2, -4, -6.04, -8, -10, -13, -16.07, -19, -22, -25]\n",
|
|||
|
"#muA\n",
|
|||
|
"current_5 = [120.02, 116.93, 113.78, 110.29, 105.35, 97.18, 89.20, 78.43, 63.32, 46.90, 25.17, 3.59, -18.41, -37.95, -55.38, -68.57, -78.62, -88.28, -94.05, -97.70, -101.01, -104.42]\n",
|
|||
|
"\n",
|
|||
|
"#3 mA\n",
|
|||
|
"#V\n",
|
|||
|
"voltage_3 = [25, 22, 19, 16, 13, 10, 8, 6.03, 4.05, 2, 0.29, -0.73, -2, -4, -6, -8, -10, -13, -16.07, -19, -22, -25]\n",
|
|||
|
"#muA\n",
|
|||
|
"current_3 = [69.05, 66.95, 64.84, 62.73, 60.27, 56.44, 52.25, 46.12, 37.51, 25.78, 14.42, 4.48, -4.80, -17.45, -27.78, -35.60, -40.79, -45.21, -47.58, -49.35, -51.09, -52.93]\n",
|
|||
|
"\n",
|
|||
|
"#1.5 mA\n",
|
|||
|
"#V\n",
|
|||
|
"voltage_15 = [25, 22, 19, 16, 13, 10, 8, 6, 4, 2, 0.36, -0.30, -2, -4, -6, -8, -10, -13, -16, -19, -22, -25]\n",
|
|||
|
"#muA\n",
|
|||
|
"current_15 = [36.20, 34.93, 33.65, 32.39, 31.05, 29.13, 27.02, 23.91, 19.54, 13.68, 7.97, 5.06, -1.01, -7.63, -12.91, -16.76, -19.39, -21.44, -22.38, -23.16, -23.95, -24.77]\n",
|
|||
|
"\n",
|
|||
|
"k_5_r, b_5_r = np.polyfit(voltage_5[:4], current_5[:4], deg = 1)\n",
|
|||
|
"k_5_l, b_5_l = np.polyfit(voltage_5[17:], current_5[17:], deg = 1)\n",
|
|||
|
"k_3_r, b_3_r = np.polyfit(voltage_3[:4], current_3[:4], deg = 1)\n",
|
|||
|
"k_3_l, b_3_l = np.polyfit(voltage_3[17:], current_3[17:], deg = 1)\n",
|
|||
|
"k_15_r, b_15_r = np.polyfit(voltage_15[:4], current_15[:4], deg = 1)\n",
|
|||
|
"k_15_l, b_15_l = np.polyfit(voltage_15[17:], current_15[17:], deg = 1)\n",
|
|||
|
"\n",
|
|||
|
"current_5_r = []\n",
|
|||
|
"current_5_l = []\n",
|
|||
|
"current_3_r = []\n",
|
|||
|
"current_3_l = []\n",
|
|||
|
"current_15_r = []\n",
|
|||
|
"current_15_l = []\n",
|
|||
|
"for i in range(11):\n",
|
|||
|
" current_5_r.append(k_5_r * voltage_5[i] + b_5_r) \n",
|
|||
|
" current_5_l.append(k_5_l * voltage_5[11 + i] + b_5_l)\n",
|
|||
|
" current_3_r.append(k_3_r * voltage_3[i] + b_3_r) \n",
|
|||
|
" current_3_l.append(k_3_l * voltage_3[11 + i] + b_3_l)\n",
|
|||
|
" current_15_r.append(k_15_r * voltage_15[i] + b_15_r) \n",
|
|||
|
" current_15_l.append(k_15_l * voltage_15[11 + i] + b_15_l)\n",
|
|||
|
"\n",
|
|||
|
"plt.figure(figsize=(8, 6))\n",
|
|||
|
"plt.scatter(voltage_5, current_5, color = 'green', marker = 'o')\n",
|
|||
|
"plt.scatter(voltage_3, current_3, color = 'orange', marker = 'o')\n",
|
|||
|
"plt.scatter(voltage_15, current_15, color = 'purple', marker = 'o')\n",
|
|||
|
"plt.plot(voltage_5[:11], current_5_r, color = 'black', linewidth = 0.5)\n",
|
|||
|
"plt.plot(voltage_5[11:], current_5_l, color = 'black', linewidth = 0.5)\n",
|
|||
|
"plt.plot(voltage_3[:11], current_3_r, color = 'black', linewidth = 0.5)\n",
|
|||
|
"plt.plot(voltage_3[11:], current_3_l, color = 'black', linewidth = 0.5)\n",
|
|||
|
"plt.plot(voltage_15[:11], current_15_r, color = 'black', linewidth = 0.5)\n",
|
|||
|
"plt.plot(voltage_15[11:], current_15_l, color = 'black', linewidth = 0.5)\n",
|
|||
|
"plt.plot(voltage_5, current_5, color = 'green')\n",
|
|||
|
"plt.plot(voltage_3, current_3, color = 'orange')\n",
|
|||
|
"plt.plot(voltage_15, current_15, color = 'purple')\n",
|
|||
|
"plt.axhline(y=0, color ='k')\n",
|
|||
|
"plt.axvline(x=0, color ='k')\n",
|
|||
|
"plt.xlabel('Напряжение, В')\n",
|
|||
|
"plt.ylabel('Ток, мкА')\n",
|
|||
|
"\n",
|
|||
|
"print((b_5_r - b_5_l) / 2, (b_3_r - b_3_l) / 2, (b_15_r - b_15_l) / 2)\n"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": null,
|
|||
|
"id": "e4a91142",
|
|||
|
"metadata": {},
|
|||
|
"outputs": [],
|
|||
|
"source": []
|
|||
|
}
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"kernelspec": {
|
|||
|
"display_name": "Python 3 (ipykernel)",
|
|||
|
"language": "python",
|
|||
|
"name": "python3"
|
|||
|
},
|
|||
|
"language_info": {
|
|||
|
"codemirror_mode": {
|
|||
|
"name": "ipython",
|
|||
|
"version": 3
|
|||
|
},
|
|||
|
"file_extension": ".py",
|
|||
|
"mimetype": "text/x-python",
|
|||
|
"name": "python",
|
|||
|
"nbconvert_exporter": "python",
|
|||
|
"pygments_lexer": "ipython3",
|
|||
|
"version": "3.9.12"
|
|||
|
}
|
|||
|
},
|
|||
|
"nbformat": 4,
|
|||
|
"nbformat_minor": 5
|
|||
|
}
|