2023-03-06 16:17:53 +03:00
|
|
|
{
|
|
|
|
"cells": [
|
2023-03-14 09:49:32 +03:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "5cff7367",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Кольца Ньютона"
|
|
|
|
]
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-14 09:49:32 +03:00
|
|
|
"execution_count": 1,
|
2023-03-06 16:17:53 +03:00
|
|
|
"id": "e16deb44-1094-4981-b3b2-9170816472e9",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"# %load ../processing_tools.py\n",
|
|
|
|
"import numpy as np\n",
|
|
|
|
"from scipy.optimize import curve_fit\n",
|
|
|
|
"import pandas as pd\n",
|
|
|
|
"\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"import matplotlib\n",
|
|
|
|
"import scienceplots\n",
|
|
|
|
"\n",
|
|
|
|
"plt.style.use(['science', 'russian-font'])\n",
|
|
|
|
"\n",
|
|
|
|
"matplotlib.rcParams.update({\n",
|
|
|
|
" 'figure.figsize': [6, 4],\n",
|
|
|
|
" 'savefig.facecolor': 'white',\n",
|
2023-03-14 09:49:32 +03:00
|
|
|
" 'figure.dpi': 175.0,\n",
|
2023-03-06 16:17:53 +03:00
|
|
|
" 'font.size': 12.0,\n",
|
|
|
|
"})\n"
|
|
|
|
]
|
|
|
|
},
|
2023-03-14 09:49:32 +03:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "848f05eb-e21e-4fc0-8429-bed4cdcad3ee",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Стандартный подход к обработке"
|
|
|
|
]
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "18f7eaab-03eb-44de-ac72-ad4c1908b33a",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"### Калибровка шкалы"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 2,
|
2023-03-06 16:17:53 +03:00
|
|
|
"id": "b7d28cdc-bfae-4af9-8fb3-11509f9ffab5",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"1.4353070925719702"
|
|
|
|
]
|
|
|
|
},
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 2,
|
2023-03-06 16:17:53 +03:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-03-14 09:49:32 +03:00
|
|
|
"lamb = 577e-3 # мкм\n",
|
|
|
|
"\n",
|
2023-03-06 16:17:53 +03:00
|
|
|
"l = 700 # +-10\n",
|
|
|
|
"dels = 96 + 700 - 76 # +-1\n",
|
|
|
|
"k_mean = l / dels\n",
|
|
|
|
"k_err = np.sqrt(10**2 * (1/dels)**2 + (-l/(dels**2))**2)\n",
|
|
|
|
"k = (k_mean, k_err) # цена деления в микронах\n",
|
|
|
|
"\n",
|
|
|
|
"k_err / k_mean * 100 # %ошибки"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "52600d36-efe5-460f-acb2-6538c76b0361",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"source": [
|
|
|
|
"### Расстояния от центра до колец"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 3,
|
2023-03-06 16:17:53 +03:00
|
|
|
"id": "06aec23a-bfc1-4a32-a4bf-2abb6158f070",
|
2023-03-14 09:49:32 +03:00
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA8MAAAJyCAYAAADglBJSAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAADxAklEQVR4nOzdeXhTVfoH8G9a9qVNW1ArVGgKKAIiaamoM85IE9BZVRJwX0si7qI0FB0Bt5KCVdygxW3cSyLO4rjQgPNzhdIGlE2FBKTFKtDkNux0ub8/Ork2bdIk7U3btN/P8/SxnJxzz7lpWvPmnPMehSiKIoiIiIiIiIh6kJjOHgARERERERFRR2MwTERERERERD0Og2EiIiIiIiLqcRgMExERERERUY/DYJiIiIiIiIh6HAbDRERERERE1OMwGCYiIiIiIqIep1dnD4Ciy4kTJ7B161YMHToUvXrx5UNERERERF1PXV0dDh48iAkTJqBfv35+6zCaobBs3boVmZmZnT0MIiIiIiKioEpLSzF58mS/jzEYprAMHToUQOOLCgAyMzNRWlqK5OTkThtTVVUVx9GFxsBxdL0xdJVxdIUxcBxdbwwcR9cbQ1cZR1cYA8fR9cbAcXS9MXSVcTQfg/ff3vjFn24VDAuCAL1eD5PJBI1GE3KbvLw82Gw2JCYmAgBUKhXMZjOUSqXfNna7HXl5eVJ9p9MJo9EInU7Xal/R0q413qXRTV/kycnJGD58eJuvKReOo2uNgePoemPoKuPoCmPgOLreGDiOrjeGrjKOrjAGjqPrjYHj6Hpj6CrjaD6G1rZ2Rn0wLAgCnE4nbDYb8vLyIAgCjEZjSG1tNhv0ej1yc3NRXl7eorykpKRFm/z8fOTl5aG8vB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Axes>"
|
2023-03-06 16:17:53 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"center_pos = 482 # +- 1\n",
|
|
|
|
"dark_dot = (482 - 435) * k[0]\n",
|
|
|
|
"\n",
|
|
|
|
"dist = np.genfromtxt('iii-data.csv', skip_header=True) - center_pos\n",
|
|
|
|
"dist_si = (-dist)[::-1] * k[0]\n",
|
|
|
|
"dark_distances = dist_si[1::2]\n",
|
|
|
|
"light_distances = dist_si[::2]\n",
|
|
|
|
"m = np.arange(0, len(dist) / 2)\n",
|
|
|
|
"\n",
|
|
|
|
"# dist_si**2 = (dist * k)**2\n",
|
|
|
|
"err = lambda dist : np.sqrt((k[0]**2 * 2*dist*1)**2 + (dist**2 * 2*k[0]*k[1])**2)\n",
|
|
|
|
"plt.errorbar(m+1, dark_distances**2, yerr=err(dark_distances), label='Тёмные кольца')\n",
|
|
|
|
"plt.errorbar(m, light_distances**2, yerr=err(light_distances), label='Светлые кольца')\n",
|
|
|
|
"plt.scatter(0, dark_dot**2, marker='o', label='Граница тёмного пятна')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.ylabel('Квадрат расстояния до центра, $\\\\text{мкм}^2$')\n",
|
|
|
|
"plt.xlabel('Порядковый номер m')\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"\n",
|
|
|
|
"plt.savefig(r'images/dark-light.svg')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "2adad890-f5df-4a1f-ac51-10126ec6f233",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"**Тёмный проходит через (0,0)**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "718516ca-f89a-490e-aa08-92635336ae3e",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"source": [
|
|
|
|
"### Рассчёт кривизны"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 4,
|
2023-03-06 16:17:53 +03:00
|
|
|
"id": "0ca07e96-9b37-4615-b120-f95e610f525a",
|
2023-03-14 09:49:32 +03:00
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA8MAAAJyCAYAAADglBJSAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAADzmklEQVR4nOz9e3Rb530n/H4BXsArCICUJViiJIKWL4qcSCDFtJOkTU3ASmIlTmJCSmdl3kymIhFPe2Y6emvCzKxzbK+zTikwLtuZ0742Kfe8kxnPTCWgid3YSWxCStM0aSsRkBwrsuOIkCxSpiSSwCZ4vwD7/EHvbZAECIDcuJHfz1pcljeejefBhSB++/c8v0cliqIIIiIiIiIioi1Ene0BEBEREREREWUag2EiIiIiIiLachgMExERERER0ZbDYJiIiIiIiIi2HAbDREREREREtOUwGCYiIiIiIqIth8EwERERERERbTmF2R4A5ZfZ2Vm8/fbb2LZtGwoL+fYhIiIiIqLcs7i4iJGRETz88MMoKSmJ2YbRDKXk7bffRlNTU7aHQURERERElNCFCxdw+PDhmLcxGKaUbNu2DQDwgx/8AF/84hdx4cIFGI3GrI5peHgYTU1NHEsOjyXXxsOx5P5Ycm08HEvujyXXxsOxcCz5PB6OJffHkmvjycWxSPGKFL/EwmCYUiJNjd6+fTsAwGg0YteuXdkckoxjiS2XxgLk1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vpxHm1f0eyFdswF0Ot2q9erS/8ebaipNM16ZEY5mMplw+vTpmP1Jt8c7b62+403
|
2023-03-06 16:17:53 +03:00
|
|
|
"text/plain": [
|
2023-03-14 09:49:32 +03:00
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
2023-03-06 16:17:53 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"def line1(x, k):\n",
|
|
|
|
" return k*x\n",
|
|
|
|
"\n",
|
|
|
|
"([lR1], [[lR1_err]]) = curve_fit(line1, m+1, dark_distances**2)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.fill_between(m+1, line1(m+1, lR1+lR1_err), line1(m+1, lR1-lR1_err), alpha=.15, edgecolor='none', label='Случайная ошибка')\n",
|
|
|
|
"plt.plot(m+1, line1(m+1, lR1), alpha=.65, label=r'Аппроксимация $r=\\sqrt{m\\lambda R}$', color='C0')\n",
|
|
|
|
"plt.errorbar(m+1, dark_distances**2, yerr=err(dark_distances), label='Эксперимент', marker='.', linestyle='none', color='C0')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.ylabel('Квадрат расстояния до центра, $\\\\text{мкм}^2$')\n",
|
|
|
|
"plt.xlabel('Порядковый номер m')\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"\n",
|
|
|
|
"plt.savefig(r'images/dark-approx.svg')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
2023-03-14 09:49:32 +03:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 5,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "2d3a2c1c-4e35-4c57-8cc7-f1ae559df7d2",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
|
|
|
"R = 11.9 +- 0.8 мм\n"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"R = lR1 / lamb\n",
|
|
|
|
"R_err = np.sqrt((1/lamb)**2 * lR1_err**2)\n",
|
|
|
|
"print(f'R = {R*1e-3:.3} +- {R_err*1e-3:.1} мм')"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "144b2708-3133-445c-bfe6-71ea94b27e70",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Обработка фото колец"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "08497bc8-6df7-4b62-a710-7525c402bed0",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"### Расчёт кривизны"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "471e57c5-197e-4f07-96f6-b9f7ba61e6fc",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"Импорт, кроп, удаление шумов медианным фильтром, перевод в чб фото"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 6,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "7e97f19c-7447-493b-bb0d-a9de3771a056",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAz8AAAAhCAYAAAD3YRU1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAA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wBaKgdi/IZoh8bLUwRBgMbcDHpp4b8JklogsFKRXkOUAp2HV0fSYIoWTG4zjgNk0YwgJ2b5OhEBBGvx4AEGubE5KNp6oOgoRwnjrkA6Njc94PYWnvuGhAooJjmDFJRKSCFAQxFixRAARbF9U5l8381+EkxRAz7roR9+mCI88YeEGiYvdRgbgLtGhAIMHACyQQFgdEU4nIhQ1AzAxabE5psTlva8XXBwBzplkRgiDFgptuxiEuEBCyMhIJFg0YsGCgBYEEAQImwcnnZ3bHcdEI8XXW+SIdaMEQDSzdpAlzCcga2ufqu0cWLEHazzUo0ImtT7U5pUIrUAAQ6trxn1HZAJ+wmUb//+2+kQSMb0wv9J8AXgQkQLzYWi2dPUcgU8zKBmzKzIAaMCo9r+vXp5SzQgUNZLV9hld6ZQN6tqLkOoZ8LxbTARCAFrJbJdgcK6Hjgts44T5dcCkJ59zhaRkQudg69AFJ/v8BiiNPeCpD+zkAJC3oqGD25yggv3HGi/a+xg0MVcnCOKQFRQkhCCgoNCg0ErSYOn39bmB/581YFGEQgC74fgchQHAXRiTK+CRHPMqAs/Q4lw7fT7f4m+c3+PByxDglSGGIEMAK6SygRFUnJh/roEBm5BxQhJBCsT2MdQ8HKAa+QMA
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"import imageio.v2 as im\n",
|
|
|
|
"from skimage.color import rgb2gray\n",
|
|
|
|
"from scipy import ndimage\n",
|
|
|
|
"from scipy.signal import find_peaks\n",
|
|
|
|
"\n",
|
|
|
|
"face = im.imread('images/rings2.png')\n",
|
|
|
|
"face = face[170:2000,780:815]\n",
|
|
|
|
"\n",
|
|
|
|
"face_intensity = np.fliplr(np.swapaxes(rgb2gray(face), 0, 1))\n",
|
|
|
|
"face_intensity = ndimage.median_filter(face_intensity, 4)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.imshow(face_intensity)\n",
|
|
|
|
"plt.axis('off')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "f9fa0024-759c-4e76-9912-17c2a46813c5",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"Усреднение интенсивности пикселей по вертикали и поиск максимумов"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 7,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "bc5404a3-1d9e-400d-bf6e-2cbd11fa73e1",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA3oAAAJOCAYAAADhz3V3AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAAEAAElEQVR4nOz9e5hc130diK5T736gu/Ei0SCaEgFSIiXKFECqTXmSSBYAxpbMxHYIyWFyNXIiCh7P5E4GsYGhSJuiQpoGfI3JnfHNF5K+sUa5ZiwRSZzIcpwhYFNjO6FBAtSDEmWJaElEE90k8ehudHd11+vcP6r2Pr+9z9777FNV/UD3b30fPzaqTp2z61TVOXvt9futFYRhGILBYDAYDAaDwWAwGGsGmZUeAIPBYDAYDAaDwWAwugsmegwGg8FgMBgMBoOxxsBEj8FgMBgMBoPBYDDWGJjoMRgMBoPBYDAYDMYaAxM9BoPBYDAYDAaDwVhjYKLHYDAYDAaDwWAwGGsMuZUewGrCwsICvvWtb2Hr1q3I5fjUMBgMBoP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uV5/Mq/OSP/Pd8qjzz9Gx+Vj3317Piyjeftq4vy7y0Dmutmtd4VddHWn5Zt5NpSrr6y+/OYOReVu+Ymt+OfFX/ZqyTZpQq6XqsvpgCIEb1qvSH7Gvdu3o1/MPwRAFCI2L/9yx8or3lrekFuT8ne/cM/uSSGJaup/4/NaRgMxlKDiZ4BExMTGB8fx/j4OGZm4pNFBoOxejH25iyuzFXkvx85cIf8+7F/9y380tMv4JO/8xf4zy+/sRLDW/f4vkbAa/WmanbrDYO47YZmzMIfvnh+2cYjFL1MEGBTn2rGAsSz9NJCJyVbX/jbUom7+Zv3tm21/+b0grLdO6s
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"array([ 20, 43, 68, 95, 123, 152, 182, 213, 250, 285, 332,\n",
|
|
|
|
" 379, 435, 516, 776, 865, 925, 970, 1012, 1054, 1085, 1118,\n",
|
|
|
|
" 1146, 1176, 1202, 1227, 1255, 1278, 1300, 1324, 1344, 1365, 1387,\n",
|
|
|
|
" 1406, 1426, 1445, 1464, 1482, 1499, 1518, 1534, 1552, 1569, 1586,\n",
|
|
|
|
" 1601, 1618, 1634, 1648, 1665, 1681, 1695])"
|
|
|
|
]
|
|
|
|
},
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 7,
|
2023-03-14 09:49:32 +03:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"intensity = np.mean(face_intensity, axis=0)\n",
|
|
|
|
"\n",
|
|
|
|
"peaks, _ = find_peaks(intensity, distance=10, prominence=0.03)\n",
|
|
|
|
"lows, _ = find_peaks(-intensity, distance=10, prominence=0.03)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.plot(intensity)\n",
|
|
|
|
"plt.plot(peaks, intensity[peaks], \"x\")\n",
|
|
|
|
"plt.plot(lows, intensity[lows], \"x\")\n",
|
|
|
|
"plt.show()\n",
|
|
|
|
"peaks"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "06b6d86d-1b38-4f92-9a63-d0330ed68214",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"Выбираем лучшую половину и нормируемся по центру **(между двумя светлыми участками)**"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 8,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "05115497-10d8-42f0-b110-d92d5a927078",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA3oAAAC+CAYAAABjwn1HAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAAAgUklEQVR4nO3db4gj+Z3f8c/sjtdrwrVrej1ORFoX0BzJ4tyGRN1bF9+jkJHgjoDviXrn4T3xtCA5g28etJgHidd+IqQHIpAjRL3O8/RITy4YEpAmJE+SWDNS4MwZB64LHHVo4j23yoqD/4238mCuavtPSSqVSvpVV79fULhb+v35quY7a33nV1W/O57neQIAAAAAZMYbpgMAAAAAACSLQg8AAAAAMoZCDwAAAAAyhkIPAAAAADKGQg8AAAAAMoZCDwAAAAAyhkIPAAAAADKGQg8AAAAAMiZWoee6rsrlsvr9fiJBjEYj7e/vq1qtqlqtqlwuq9vtzu3z4MEDNZtN9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GWmUMk/ObinvT8cbpt6m51t0+Tr9NnK91tU9DHGmIIe6fY5oYK/TOz89jtY3b7yb6P7+Y6OD7/1Lf/ckP9Duff1dHX/q6/vpn75kOK5O+1f0ztb7z/eD3X/36k+D3b37w9w1Ftf4cWPfnTjL+pGKNE5OpuVeZd5Vzv8y8UeeJ81mW+QxJxryuWKOOm2R888ZKKp6kxooyxqz+m5h/lblN9E1Dv3/9pz/cyFy/9RclHX1nvLb2i+L66Z3/q7/4rf7Kn31Wn7DxF52nf/oHfyv2+Emez7hxfP7/5XTaf09v/PpzxmKIci7SzthTN3d
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x175 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"half_peaks = peaks[13:]\n",
|
|
|
|
"half_lows = lows[13:]\n",
|
|
|
|
"half_lows[0] = (half_peaks[1] + half_peaks[0]) / 2\n",
|
|
|
|
"half_peaks = half_peaks[1:]\n",
|
|
|
|
"\n",
|
|
|
|
"# нормировка\n",
|
|
|
|
"real_dist = 2*(482-424)*k[0] # мкм\n",
|
|
|
|
"idx_dist = 786 - 526\n",
|
|
|
|
"step = real_dist / idx_dist\n",
|
|
|
|
"start = half_lows[0]\n",
|
|
|
|
"half_peaks = (half_peaks - start) * step\n",
|
|
|
|
"half_lows = (half_lows - start) * step\n",
|
|
|
|
"\n",
|
|
|
|
"plt.figure(figsize=(6,1))\n",
|
|
|
|
"plt.scatter(half_peaks, np.ones(len(half_peaks)), s=4)\n",
|
|
|
|
"plt.scatter(half_lows, np.ones(len(half_lows)), s=1)\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "071fdd2b-4a7f-472e-b008-f2062ecb9c14",
|
2023-03-06 16:17:53 +03:00
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
2023-03-14 09:49:32 +03:00
|
|
|
"Квадрат расстояния в зависимости от пор. номера для светлых и тёмных"
|
2023-03-06 16:17:53 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 9,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "2b31d75b-c7bf-4c9b-99c2-d1ec456974a9",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA8MAAAJyCAYAAADglBJSAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAADpWElEQVR4nOzde3xT5f0H8E+SQm/QJi0FCg3QFPCGCGmpsp9OkVQ35+aUFGSbmxdIZd5mJw3FbercKK3Y3ZzSovM3p2O0Fec2f05a2AYoCm0ARZFLw6WF0luShtILNDm/P7ocmjZp0vak6eXzfr36Ek+e5zzPOUnTfPN9LjJBEAQQERERERERjSLyYHeAiIiIiIiIaLAxGCYiIiIiIqJRh8EwERERERERjToMhomIiIiIiGjUYTBMREREREREow6DYSIiIiIiIhp1GAwTERERERHRqBMS7A7Q8NLW1obPPvsMcXFxCAnhy4eIiIiIiIaejo4O1NfX49prr0VYWJjHMoxmqE8+++wzpKamBrsbREREREREPu3duxcLFizw+BiDYeqTuLg4AJ0vqvj4+D7Xr6mpQWpqar/rD9dzso/s41A653DoYyDOyT6yjyP9nOwj+ziUzjkc+hiIc7KPQ6ePrnO44hdPGAxTn7iGRsfHxyMhIaHf5xlo/eF6TvZxa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6OpKTk5GWlubX34q+9Lv7fUpLS+txb7o+913715/2unM9n96+TCciGkkcggOZRwp6DYQVkOPdec/hL3OfdguE2y858POSg1j8821iILx4zmR8su4O5P9gAf706E2YNsF9a6VpEyKDHgj7TfC
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"peaks_sqr = half_peaks**2\n",
|
|
|
|
"lows_sqr = half_lows**2\n",
|
|
|
|
"m_peaks = np.arange(0, len(half_peaks))\n",
|
|
|
|
"m_lows = np.arange(0, len(half_lows))\n",
|
|
|
|
"\n",
|
|
|
|
"plt.plot(m_lows, lows_sqr, label='Тёмные кольца (по фото)', marker='.')\n",
|
|
|
|
"plt.plot(m_peaks, peaks_sqr, label='Светлые кольца (по фото)', marker='.')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.ylabel('Квадрат расстояния до центра, $\\\\text{мкм}^2$')\n",
|
|
|
|
"plt.xlabel('Порядковый номер m')\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"\n",
|
|
|
|
"plt.savefig(r'images/dark-light-from-photo.svg')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "51b7efd4-86e9-4b51-b25e-e66af3374cf0",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"Аппроксимация прямой"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 10,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "b0c96924-2496-4418-a2cb-87b48d806f16",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs":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zlpnG3dqMBjQ398Ps9mMQ4cOqVoxNQSDQSXYS26tiUajee8jOe1Mz1eISCSSdnuhC11T8cljyIFbvSkKJQgCtmzZkvY9eWkmudV5y5YtSktpf3+/Uq7RaERzczNcLhf8fj+cTmfKeFuTyQSn05mynFNjY6PyYMdgMMDlcsFgMMDhcCAYDKa8ZzKZ4HK5lHW1k2f8TS47mTxrdjQaRV1dHUKhEMxmc9ogVxRFdHR0pD0GTqcToVBo3P7Hvi9/ZrneyfUqVr3TfYZgMAhBEJQHYtFoNGXuAIvFgq1bt05oLXKv1wufz4doNKp8DnlSsXSfIfl4JJ/H5MnbxtbLaDRmzZtr3/kc62AwqKxAIF/jyccx38+U7hxqtdqU2ajl3lfp9lXoOSYiIsplNJHA0RPnEYmNQKetwn13LUnbrfnytZv4YPgqzp6/hBdeO4v3xBEAwNzKCpjv0eG+tbehbvF81C+aj4qK0vYOHisejysTOifLFK+kkHKw2+25kkixWEyyWq2S1WqVKioqcqYvFZPJJAGQnE5nynaj0SgBkFwuV8a8gUBAAiAlH6KZni8f4XBYyZfutWvXroL2l83Jd4dnzauYfD6fcn6yXROT4fF4xu17YGBAAiAZDIa0eZxOpwRAMhqNGfcrCIJksVjGbY/FYlmvX/n6zlR2IBCQTCaTFIvFUrabTCbJYDCM2y7zeDxKuT6fb9z7LpdLeT8QCGSstyAIJa23XC+j0Zg2TVtb26SvD4vFkrZumbZLUu7jYbPZ0v6GS9JH11emvJM51nJ9TSZT2rrbbLacnynTObTZbJIgCJLH48lYr4mcYyIioly+13tOuvuvvictevT
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"([lR1], [[lR1_err]]) = curve_fit(line1, m_lows, lows_sqr)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.fill_between(m_lows, line1(m_lows, lR1+lR1_err), line1(m_lows, lR1-lR1_err), alpha=.15, edgecolor='none', label='Случайная ошибка')\n",
|
|
|
|
"plt.plot(m_lows, line1(m_lows, lR1), alpha=.65, label=r'Аппроксимация $r=\\sqrt{m\\lambda R}$', color='C0')\n",
|
|
|
|
"plt.errorbar(m_lows, lows_sqr, label='Анализ фото эксперимента', marker='.', linestyle='none', color='C0')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.ylabel('Квадрат расстояния до центра, $\\\\text{мкм}^2$')\n",
|
|
|
|
"plt.xlabel('Порядковый номер m')\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"\n",
|
|
|
|
"plt.savefig(r'images/dark-approx-photo.svg')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "074ea32d-9071-445e-8f10-a20fccc8fc67",
|
2023-03-06 16:17:53 +03:00
|
|
|
"metadata": {},
|
2023-03-14 09:49:32 +03:00
|
|
|
"source": [
|
|
|
|
"Расчёт кривизны и погрешности"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 11,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "5cf756f7-bfc5-422c-9d23-ec525ee4c45d",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
2023-03-14 09:49:32 +03:00
|
|
|
"R = 9.75 +- 0.06 мм\n"
|
2023-03-06 16:17:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"R = lR1 / lamb\n",
|
2023-03-14 09:49:32 +03:00
|
|
|
"R_err = np.sqrt((1/lamb)**2 * lR1_err**2)\n",
|
2023-03-06 16:17:53 +03:00
|
|
|
"print(f'R = {R*1e-3:.3} +- {R_err*1e-3:.1} мм')"
|
|
|
|
]
|
|
|
|
},
|
2023-03-14 09:49:32 +03:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "846a4de2-93a9-4f5b-8780-42c74c75b45a",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Биения"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 12,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "da401148-6fee-42c2-b359-2ed82281f486",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAz8AAAAdCAYAAACE2dLjAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAAA0MElEQVR4nO293Y4lOZIm9pmR7ufEiYyMrKzq7qrpne7WjHpndzEzgC51oXsBeh7ptfQKEiRI0I2g3cVgsatZYbp3u7qqK6vyJyJO+A9ppgujkfQTkTmlGwnacgMCEXGOO52kk2b22R9JVRU77bTTTjvttNNOO+20007/iRP/f92BnXbaaaeddtppp5122mmn/zdoBz877bTTTjvttNNOO+2000+CdvCz00477bTTTjvttNNOO/0kaAc/O+2000477bTTTjvttNNPgnbws9NOO+2000477bTTTjv9JGgHPzvttNNOO+2000477bTTT4J28LPTTjvttNNOO+200047/SQo/piL/ut/+t8BzMAQoYGgIQCBIGOADgwJDI0ECQQNBBCgDIAACQSJBImwe6m1q2w/MqDcD5AClMsFBOSxfN/BNFIA5XQiDUA+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oBZIs4yYqSEBzmAu7ZX3fIUwIxJkXIFCwHGTwdkzBiqgaYnUQbD5McK33e0+d55f09D6bOP0f6236yKgTIOnMCqSBKw1rYYs0QkCiYfiuxaO6NYHQ8JAgxQufEuhRUPaWzPFq7z5OvF5UVv6ErFEGBzF+saS8WYRqUfB0448VLn0NdAlYWFHMT286Jdf1YNVaZwkTc9mfFQNnLK7bqiXPczF+MgdXpG0oCHdEDiUEBnAwZZrJ9
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"face = im.imread('images/bieniya.png')\n",
|
|
|
|
"face = face[705:735,:]\n",
|
|
|
|
"\n",
|
|
|
|
"face_intensity = rgb2gray(face)\n",
|
|
|
|
"face_intensity = ndimage.median_filter(face_intensity, 4)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.imshow(face_intensity)\n",
|
|
|
|
"plt.axis('off')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-09-15 14:01:17 +03:00
|
|
|
"execution_count": 13,
|
2023-03-14 09:49:32 +03:00
|
|
|
"id": "412e0b45-c42a-4077-90ce-c2aff9900023",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA50AAAJyCAYAAABHSaSpAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAAEAAElEQVR4nOy9d3hc13km/k5HHQz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Pwaxccr6Vn8+jr7TCs3ThEUNCmVJsS0LOmOwGg8ltn5gtY05Woab8mclhrPSat5xRoJQFnNBcZLX15JltAd7s9sZHNl/DDf/ww8sUyvvo/diFJls0Z1H0mnQzGysKyVDqPHj2K/fv348EHH5SEEwBSqRQeeeQRHDp0CPfdd1/d+0+lUsq/d+zYgcOHD+Pee+9tyXYMBoNhwuvnZuTflgU8P5pu+XueTc/jow8+7Xj96UWw964GPH7M2YuyleqeUCR7O1VS2UFqhk31dX4wkcOTF2YMa7qDJtd2t1WOZ4pbZywbZObV32o6q55Hjz4/jidGLuKZk5P4xEMvK8uyJqVT2/5Meh4TLv07J2fzuP/hV3DyAtuxGYylimVJOu+8806kUins2rXLsUy8vmfPnrr2vWvXLkxOTmJychLHjh2DZVk4cuSI8b2asR2DwWCYMJ8vOiyt33vlfMvf98A/P4dC1V75jQ+/B++6bhMA4LkFILyrEU9UQ4R2bl0rX2tlj0JB4qi1FgC62mzSOZOtnXSayOHxc7WRzlOTFdK5PtmGDVW7L5PO5YOMZrGe0ZTPV05n5N96um2u6CSddPLj5IVZXLf3n/Gmff9qPCf2/90R7P3bJ/DTf/5vdR07g8FoPZYd6Uyn0zh69Ch27tzpus7u3bs
|
2023-03-14 09:49:32 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1050x700 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"intensity = np.mean(face_intensity, axis=0)\n",
|
|
|
|
"x = np.linspace(0, 1000, len(intensity))\n",
|
2023-03-18 19:56:00 +03:00
|
|
|
"plt.plot(x, intensity*(1e-6*(x-400)**2+1))\n",
|
|
|
|
"# plt.plot(x, 1e-11*(x-400)**4+1)\n",
|
|
|
|
"plt.xlabel('Радиус в безразмерных координатах')\n",
|
|
|
|
"plt.ylabel('Интенсивность')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.savefig(r'images/bieniya_plot.svg')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-09-15 14:01:17 +03:00
|
|
|
"execution_count": 14,
|
2023-03-18 19:56:00 +03:00
|
|
|
"id": "6694fc26-4fc5-497d-b7ec-0412cebc8bb3",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
2023-09-15 14:01:17 +03:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABNYAAAEfCAYAAACNqktkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAABrqAAAa6gErNNAAAAEAAElEQVR4nOz9ebwt11Uein5Vtdrdrr33adX7yDYYMNiyTTpuArFECOSFNDa+vLSPm9gvuUleQi4WTnNJwiW2fAmPNDQSSUjigGNJGOPgBCO5xQZsS0edZcmSTt/vs5u199qrX1V1/5g1a45ZNatqVtVcR8Cp8ftJZ+1VtWrUrJrNmN/4xhiW7/s+KqmkkkoqqaSSSiqppJJKKqmkkkoqqaSSXGK/2jdQSSWVVFJJJZVUUkkllVRSSSWVVFJJJb8fpQLWKqmkkkoqqaSSSiqppJJKKqmkkkoqqaSAVMBaJZVUUkkllVRSSSWVVFJJJZVUUkkllRSQClirpJJKKqmkkkoqqaSSSiqppJJKKqmkkgJSAWuVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkAqYK2SSiqppJJKKqmkkkoqqaSSSiqppJJKCkgFrFVSSSWVVFJJJZVUUkkllVRSSSWVVFJJAamAtUoqqaSSSiqppJJKKqmkkkoqqaSSSiopIBWwVkkllVRSSSWVVFJJJZVUUkkllVRSSSUFpALWKqmkkkoqqaSSSiqppJJKKqmkkkoqqaSAVMBaJZVUUkkllVRSSSWVVFJ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j2vOlNSVw+9fx5XN8T7frsV0fw/XmG2opJ/JXLA/zzX7bwj35pO3i
|
2023-03-18 19:56:00 +03:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1575x350 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"wl1 = 577 # нм\n",
|
|
|
|
"wl2 = 546 # нм\n",
|
|
|
|
"nu = lambda wl : (3e8 * 1e9 / wl)\n",
|
|
|
|
"\n",
|
|
|
|
"t = np.linspace(0, 7e-14, 1000) - 1.2e-14\n",
|
|
|
|
"w1 = np.sin(2*np.pi*nu(wl1)*t)\n",
|
|
|
|
"w2 = np.sin(2*np.pi*nu(wl2)*t)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.figure(figsize=(9,2))\n",
|
|
|
|
"plt.plot(t, w1, alpha=.2, color='yellow', label='Первая волна')\n",
|
|
|
|
"plt.plot(t, w2, alpha=.2, color='green', label='Вторая волна')\n",
|
|
|
|
"plt.plot(t, (w1 + w2)/2, label='Сумма')\n",
|
|
|
|
"plt.axis('off')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.legend(frameon=True)\n",
|
|
|
|
"plt.savefig('images/bieniya_scheme.svg')\n",
|
2023-03-14 09:49:32 +03:00
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "19a36a5f-d7ad-4720-9d5c-cbaecaf59636",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"source": [
|
|
|
|
"### Разность длин волн, полученная при наблюдении биений"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 15,
|
2023-03-06 16:17:53 +03:00
|
|
|
"id": "1e23db39-56a0-4a1d-b2bf-8d77f6d7e8d8",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-03-18 19:56:00 +03:00
|
|
|
"33.94117647058823"
|
2023-03-06 16:17:53 +03:00
|
|
|
]
|
|
|
|
},
|
2023-03-18 19:56:00 +03:00
|
|
|
"execution_count": 15,
|
2023-03-06 16:17:53 +03:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-03-18 19:56:00 +03:00
|
|
|
"delta = 1/17 * lamb * 1e3 # нм\n",
|
2023-03-06 16:17:53 +03:00
|
|
|
"delta"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "5b220cdb-e764-443e-9f18-834132439e24",
|
|
|
|
"metadata": {
|
|
|
|
"jp-MarkdownHeadingCollapsed": true,
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"source": [
|
2023-03-14 09:49:32 +03:00
|
|
|
"## Лабораторный журнал"
|
2023-03-06 16:17:53 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "raw",
|
|
|
|
"id": "87504042-278d-43b9-82d3-e10518bd63f1",
|
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"source": [
|
|
|
|
"81 (темн)\n",
|
|
|
|
"84 (светл)\n",
|
|
|
|
"89\n",
|
|
|
|
"94\n",
|
|
|
|
"98\n",
|
|
|
|
"\n",
|
|
|
|
"104\n",
|
|
|
|
"108\n",
|
|
|
|
"113\n",
|
|
|
|
"119\n",
|
|
|
|
"124\n",
|
|
|
|
"128\n",
|
|
|
|
"132\n",
|
|
|
|
"137\n",
|
|
|
|
"144\n",
|
|
|
|
"154\n",
|
|
|
|
"160\n",
|
|
|
|
"165\n",
|
|
|
|
"171\n",
|
|
|
|
"177\n",
|
|
|
|
"183\n",
|
|
|
|
"189\n",
|
|
|
|
"195\n",
|
|
|
|
"\n",
|
|
|
|
"202\n",
|
|
|
|
"209\n",
|
|
|
|
"214\n",
|
|
|
|
"222\n",
|
|
|
|
"229\n",
|
|
|
|
"236\n",
|
|
|
|
"243\n",
|
|
|
|
"252\n",
|
|
|
|
"259\n",
|
|
|
|
"268\n",
|
|
|
|
"276\n",
|
|
|
|
"285\n",
|
|
|
|
"295\n",
|
|
|
|
"\n",
|
|
|
|
"303\n",
|
|
|
|
"313\n",
|
|
|
|
"324\n",
|
|
|
|
"336\n",
|
|
|
|
"351\n",
|
|
|
|
"364\n",
|
|
|
|
"378\n",
|
|
|
|
"399 (темн)\n",
|
|
|
|
"\n",
|
|
|
|
"424 (светл) -- последнее кольцо\n",
|
|
|
|
"далее тёмное пятно радиусом 435\n",
|
|
|
|
"центр -- 482"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "raw",
|
|
|
|
"id": "a9da40b4-e2b7-4943-9f76-098686d1824c",
|
2023-03-14 09:49:32 +03:00
|
|
|
"metadata": {
|
|
|
|
"tags": []
|
|
|
|
},
|
2023-03-06 16:17:53 +03:00
|
|
|
"source": [
|
|
|
|
"14 полос между системами"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"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",
|
2023-09-15 14:01:17 +03:00
|
|
|
"version": "3.10.10"
|
2023-03-14 09:49:32 +03:00
|
|
|
},
|
|
|
|
"varInspector": {
|
|
|
|
"cols": {
|
|
|
|
"lenName": 16,
|
|
|
|
"lenType": 16,
|
|
|
|
"lenVar": 40
|
|
|
|
},
|
|
|
|
"kernels_config": {
|
|
|
|
"python": {
|
|
|
|
"delete_cmd_postfix": "",
|
|
|
|
"delete_cmd_prefix": "del ",
|
|
|
|
"library": "var_list.py",
|
|
|
|
"varRefreshCmd": "print(var_dic_list())"
|
|
|
|
},
|
|
|
|
"r": {
|
|
|
|
"delete_cmd_postfix": ") ",
|
|
|
|
"delete_cmd_prefix": "rm(",
|
|
|
|
"library": "var_list.r",
|
|
|
|
"varRefreshCmd": "cat(var_dic_list()) "
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"types_to_exclude": [
|
|
|
|
"module",
|
|
|
|
"function",
|
|
|
|
"builtin_function_or_method",
|
|
|
|
"instance",
|
|
|
|
"_Feature"
|
|
|
|
],
|
|
|
|
"window_display": false
|
2023-03-06 16:17:53 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 5
|
|
|
|
}
|