{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from uncertainties import umath, ufloat" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Fresnel reflection" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "n1 = 1.4677; n2 = 1.000293\n", "R = lambda n1,n2: (np.abs((n1-n2)/(n1+n2)))**2" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3.5867621428728245" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "R(n1,n2) * 100" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1.8166666666666667e-12" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "545e-6/(3e8)" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "## CAR to Visibility" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "https://www.nature.com/articles/s42005-020-0375-6?proof=true\n", "and PHYSICAL REVIEW LETTERS 121, 190401 (2018)\n", "Min visibility = 0.71" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.898989898989899" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "CAR = 8.9\n", "p = CAR/(1+CAR)\n", "q = 1/(1+CAR)\n", "Max = p/2 + q/4\n", "Min = q/4\n", "Visibility = (Max-Min)/(Max+Min)\n", "Visibility" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Mean offset difference uncertainty" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "o1 = ufloat(1,17); o2 = ufloat(20,20)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "19.0+/-26.248809496813376" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "o2-o1" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## ps to distance" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3.26816061047898" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "c = 2.99792458e8; t = 16e-12; D = c/n1 * t\n", "D * 1e3" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Temperature Variation" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "36.0" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "45e-3 * 20 * 40" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "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.6.9" } }, "nbformat": 4, "nbformat_minor": 2 }