{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from sympy import *\n", "init_printing()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZcAAAAUBAMAAACzG238AAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAImYQu82Z3XZU70SJqzJu81j5AAAACXBIWXMAAA7EAAAOxAGVKw4bAAADfElEQVRYCd1XTWgTQRT+kk3z3yR4EfWyij8XD4sWGsSSWjx4Ka4HBW9BqBShWlrEiggrlTVKSiM9ixUPVrzEg1gEaUCQHgpGROjBQ26eJIlBaAkU39vZyu7sxHv6IDsz3/e+efN29s1ugJCOPWFPOYuh/k9l6BXlMJijy6X+TwZXKAfNBMLFPZDMNuewDsR4d/rcUh1O4Aywv88T4eWnp/k6UIVNTX7hUNniscc028JBwwNwVyt9XaXdDJrSm916KpCfROhlcKb/SHoGGSgmjueQLmKM1LXwXIzKx2fp1DIWfQgNzuKEdRvx9ZpMCO9yWcZdRQAmoPYB8ZaKEEHeyQuiDeAlpS4HNYXKgzUdYRN3yclId1I5yedA1MR5CcMnfDHe4iSeyYTjHa4l6jIhFDJK41BlApFRBeEGofssm1jSZxkGnueNU0BiGm9oZ1SzGkkLW7LOcPK7h6whMY53rAqnEr2cUHgRt69hBVlLQUBIBioBTizpagDHjSJjmRYnA+Wsa0Zmhzm/UX7aDpKBSOxdaOC135tHgTviutAR1Gy4falhSTYngTR0ltQO4vcfWgRSMvSYQTnrBOLLzPmM88u0EdN9KA3Yu5nDjIzDuSPa5PeGzNBj/AQqQkiapW+ywgmS2VqQHwutG+qSb2qaD4CEsYi47IFxROrydEtUsvOZDmKWzLB308CcjDsKDDeIk4xmH1cSQvLI4HPWbxwkPhsv+lGEW9p2ml7/Jqie1ioXsQ/aH7/PFOiEKJheMLUdaYV02pmkpfKmnVlRKnAdPyExiNZTv1WECIILOKZcUsQKm1LwwVHsUDLRGt4DI6X8NR244795I6VbOcRmvclom/P2Ea6ZbFXlTTXTVSqolBboW8M3F7RNu60iRBCq5SnlkpLVaF0KHqnAnqeXZsPzOZPwJ8N1ACx5k3H7zmmm8BanmUKhtTF2OjhX1OxBcJwOHyaKIFmDTp8Azoph74cm7ZTHBk2Nq6rmgXa7Nr9nFN7xYqKuVrzIdHWZ+Y5CFSpChJkNjyqDxIyjMi4E/KGJc24f+d2O08b0iEXHMP0CFt8o0ieQDxbeZSpApeLjY1uXmRkqC6gIMfGvDWoVQTI/ajIuBJpJ7b8/Z7oA3WuqdJN6YR/mHejeAYQ3Q70VErNqN9wpJMJFudE9fTp7nSUFceEUyVEb0umyB+ww8BdtG/3Cu7f5qAAAAABJRU5ErkJggg==\n", "text/latex": [ "$$\\left ( x, \\quad y, \\quad x_{0}, \\quad y_{0}, \\quad x_{a}, \\quad y_{a}, \\quad x_{b}, \\quad y_{b}, \\quad k\\right )$$" ], "text/plain": [ "(x, y, x₀, y₀, xₐ, yₐ, x_b, y_b, k)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "x,y,x0,y0,xa,ya,xb,yb,k = symbols('x y x_0 y_0 x_a y_a x_b y_b k', real=True)\n", "x,y,x0,y0,xa,ya,xb,yb,k" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAJ8AAAAuBAMAAADEo9YDAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yu+/dmVREiWYidqtuSOxyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACO0lEQVRIDdVVMW/TQBh9R1InDjE+dURKExmprOEXlKFIXSiFhQkJsSGEVIURWsyMhLKwUSUsDEhVPTHAQJdKVAw4A7KEFBohRiIlylLUIjjbteA7G4x9WXJL8p6/9+7Ld+cXIGmxSzeTaAXu1LqCOElq2kmsAtfhCuIk6YskUoU7j8cPVPSylh0a+0cyqYLL4x5zVAxkbem6zChibXhZ0UGS19sf2hKlBt+ibnfVLKj6K8zmVA1XYGxM+12hLc8MKrtTbnVmDJnnYo/egtoGqlezz+PkJ1f0NRxQdfcpjJGx3aVsKjoxfFdqYJkUV+0Wihdf4wkwb/nrHHmcDCqWtXjNsgYAn3PxQxSxQGs1xTfcgOnehvnHIH7+a43CPaJT7vDChO6qj7F0YYI5m9JpKDJswVijtWIIHwvH0BxKp6HIcBXFAa0VeLUwhuZSOg1FhpvoSK2UBvqR6FAMN9OKDBf6D3epkA29YzaB2aZ0GooMgVasVEyRnnKsIoFgPCDPNNh36ekX1Nvw/HuYZ2lOUZ7VHYi/NePleh47QO/fk4VbXlOmZgDXPu9/oqNh/W9b27k7Z93Td7UGkZ/FK/cWsodSaFLhlbG+SwyfY4c/QxBKhP8/wESg+ZW/Mwk8SL3s1zXa0KQT9GmReuKFyhpKkeFS7Cr5qZcjlELDMj+AwSPz4PORMUIvRyiFJh37Ct4TP/2wOKo6OUIpdFno1+47xJANe94bf4ZZQ4m4xEH+U457BUzuUPqLX8ZQ+gVj1aAVvVfL0gAAAABJRU5ErkJggg==\n", "text/latex": [ "$$- \\frac{k}{x - x_{0}} + y - y_{0}$$" ], "text/plain": [ " k \n", "- ────── + y - y₀\n", " x - x₀ " ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "e1 = y-y0 - k/(x-x0)\n", "e1" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAMIAAAAuBAMAAACISdv7AAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yu+/dmVREiWYidqtuSOxyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACsUlEQVRYCe1Vz2sTQRh9YzY/dpNtVhEFJU1YQW+Sk9f00JtYqwfxYKEoHqRUQkQ8lGr8A6q5eNKa6EUQiutFQS97ERQvCSgrwaShZwMJuSSYopPubHTXzZpmpwfB77C7895+783MNz8Ajzh4wYPkQ53gI+Oh0vXguFBim4uMh4i06EFyofZlI691LkqjRJL5r0VtFMkFv59QjnIRGilyMzuS4kRc/1TmpDRChvRivREUJzjaIl2Jk5a7zNQMOnvrIORhVNzN/6P+ZiCyxwsc+CcdiFHGO2U4tdYYEquInRuivj4kcR6bqFaZiOVQegC55Ut4mPw+nMJstBRpmAhziOVzEGZ2oAPqII6Z9PjPX2lKsIztUAGDG1dS1ePnVbUBECwgbl9W8R9jh6MfRSXQSaZx0YStWaJ3fCbt+HPSZg7yfEbHkt2Bzt1nkNUtHi5zEBoZBct2B6GBORxKU8J/3EZRo2NYsDuEG+J33MIp//rAdO2OTuvALiurDqRp9Glt6jwcgBzYWqJylgMQTpE+Tu/3bzGVIj3IWWs/EDbxW0gWcCnQ0/w7hDShDFSfOZSWcAZ4/MUYw2HNkepsirUbTmjQXjfSbrAb9jcHt5zdYfwdSO3b+sZvnbAcEvUPVTrhHOIIXpUvQ94oMS3mQErR5VCKgz7wBC+UR3iDe3YHSZHaou7LwTqPFcxSnWuIK/T1VFWvqupJ+kWs496XCUvepnodBPNm06qD87j34RToAIE+QmyvDB12jvvD9V1fVn905S69XiuBNkJs4TCHiLIJWSFXKOMzxK7Qiml0DPRy3AnmUMyfxUeEs4FFE578SZoV4+2gDvGCKcIcpmuJFY0WR25Mrm3LZGuJYsM6DPikLrxUbD9O3DCG+8F2wAf1zMOJNe2J8vOsHTBbYnNtxQ33wH4CO6TJ8+zqmH4AAAAASUVORK5CYII=\n", "text/latex": [ "$$- \\frac{k}{- x_{0} + x_{a}} - y_{0} + y_{a}$$" ], "text/plain": [ " k \n", "- ──────── - y₀ + yₐ\n", " -x₀ + xₐ " ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s1 = e1.subs(((x,xa),(y,ya)))\n", "s1" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAJIAAAAvBAMAAAD6AY4WAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2ZVESJZiJ2qzKF9OxMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAC9UlEQVRIDe1WPWhTURT+bpo0v02fWgcl0uAoigiKgx2yCKIVMhhHCYgO0iHOIgYcrTQuglAwgxTUJaN0elGIBFvM0skOb3BPOrVYqZ5zf9L7XvJeOzhJz3DvPd/33fPuO++95AMOitWDBMQ/kZrjlyOlohhJK3KqJee7kdKEEkVqIMqS3zaqpGtW1rxircOXy0yltoxgbKVbho2cTzCbLhnNuErZIWtUY+dEneBENbmiemEqFRaQvaQ35KqAWPuxKI+vMT3ZcJpkmK19W2pK0lRqPEduIBEgRtQpvHOv69yabDjDLX9WcE4rXlfK1h4gVtRb4jXgFd46L5BbbmhMTwpWSbJE8/0qDdSuSuXOlUqlRzeDOUy7EgQm6oCDs5S9x1PGTlY47tFKwYwB+QENtz+7vKYwd0dPs+9JRFUCflN2A9OOBs3EsAquJHayOzo1lSbL+GIkfHfI75FuDxO8toJhHakSkBmI7bTKTaVYDxcgFjY8grnjj6n/7fwu4rS2QsJaxx2fKmIvUGmyl/qFGa/v0DZ6vKnt2CDbzG8h7lp1NKx1kw26aA2dtlKYM4nNzi4e4iejdGyx2e58AJ1pwlU6NSpY6xKeTQ07DlCnrmJdkuZroT5N131ylSjdjJ8RfDsUG5iti12cO8bJ8Ase8+yI1roxnwBvvonzwLX8TpOTWItHio56n1SyP0qd/lXZR/VqseMBL792mpyLIg0cuTdVOQcGqRteLkD608P8+n70bznKojrw519F1EWOuKMO/LcdKKx/6rqjd2dbilF2HCIamfl4Gd1ugLQtRYAKSdNOeivVyjSSPb/AthR+JiwT0qrE62C3J6SjqHi0tC0FpYcKtiqzHv3nBWLfUgSI0JStSr9Ff1f+kJZCGwY/E5Ilne/IOWQL5v0CZSm0YfBTIdlS7SJW+UxzPoFyGsYw+Kiw5Mxa4VGT+2SMlRJqS2EMQ9juUTyunl2QGBqGIBGe56rB90lpjWEI3znCdF+PQAwYwxAk/wKIYRRJBYdufQAAAABJRU5ErkJggg==\n", "text/latex": [ "$$\\frac{k + y_{a} \\left(x_{0} - x_{a}\\right)}{x_{0} - x_{a}}$$" ], "text/plain": [ "k + yₐ⋅(x₀ - xₐ)\n", "────────────────\n", " x₀ - xₐ " ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s5 = solveset(s1,y0).args[0]\n", "s5" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAL8AAAAuBAMAAACL/tXTAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yu+/dmVREiWYidqtuSOxyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACzUlEQVRYCe1XQWsTQRh906RpdpNtRvGkpA0rqCepf8D04NVaPYgeClbwIKUSKp7EGn+AGgRvlkQvQqEYRBT0kougeNmCuhBMGz2KhYRcWmzRb7s7bZLurmlnPAh+h93Z9817LzPf7JcECIkD50OSSlJHlaiEiKyG5FSktKYKlRAN/VJIUkWqLxd/VVEhFKQxnP9SLAclVeD30/yQCp1AjRu5wJSaxLWPlhqhABW2llwLSKmBEw22qquR8lcZHEXrrxpE87AX/b3/oxI7cFeC2xP1HzRI30Ly7PbivBUw28Jbvg1LjEoPYTSMhZIn4Rno2jiWNVNCV1CT+RlER1/jXqfBu4EMTuEpgftNJw6L+T3e2SbLHAEYJpCyriLl7McT07ximsdpxPstbOBYu9yvXqPRzgLoizt7ooX+vAuLU1TkkRbWO6fu7Yn24lNkHbFyp8EMjPHIxpKzLsmI1jEWaSJmuTpiBWOI1o1JIyepTvSBuvaTVkB7vhnCYBbFctRKZFxU5spW7HXWQqrgigiDodrtSn9hoC4jLbhUBe8UESIMgBk6WaL0Yupe7t8wXIC99R7sczUGM2wNMf5iL4pdnCmcBoz5rmrGqACIfC91TfZ7jHvV88s52Jw94pPSatd9UF/oTwa+pN2A6g3SS++rbdsiDFjtx9zCbj5Z0FxWSkzHMqhWvQnC4CBeWpfxIBPE6xnXud7UKolSvO5ShMFjPOOPoHedlp5lqe96HZhRewdiBTSJrJvmkXOmWachp/4O9OXpIhspqsDwCC64OmIFoP4OpCqy6sTP0sHOVjDlSm0ZUH8nvPZV1iHOl2HwLMd0p8Edo4FFfOa2rEExfwYfnBVMdBhoq9FGskxt4bmswVAtfbPs1MD7b+BtEVtZtN8AFzEra+DyvVNED1s12Ew0Re1lbYyceA8Yb9eaTIy2P0qMq85vmp1xcn4nFor8BjgWyt1xx+XpAAAAAElFTkSuQmCC\n", "text/latex": [ "$$- \\frac{k}{- x_{0} + x_{b}} - y_{0} + y_{b}$$" ], "text/plain": [ " k \n", "- ───────── - y₀ + y_b\n", " -x₀ + x_b " ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s2 = e1.subs(((x,xb),(y,yb)))\n", "s2" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAI4AAAAvBAMAAADHk+9wAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2ZVESJZiJ2qzKF9OxMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAC60lEQVRIDe1WPYtTQRQ9L98fb5OHH4US2WCtiKBoYZEtBPEDUhjtJCA2ohBrEQOLlQsbG2FhwSC6oDYpZasXlYCYxVhYiFvkD8gmVRazRO+deZM3yb68pLCSTDFz55wzJ/PuS3IvMGVsTuGJfigkB874KY2sHyu5hZpYb/gpw1LjJ4GRF3RPiaK2itx1ww0nR+tMxbpK4OVzRZF+60Em4zkl8fBJDkkl8lrDZULDxeiGTILyydxD8rTUm0XAaP5cETeXkJo1OE4qLJa+rFYFqXwqyzA7AkGAmCN4ZV+UW33W4AQn+nHGOip5xydZuoNA9ol4CaES8AwvrKcw1yu6i4KFLJoj6naRJkpToXD9bKHQoufABaRtcVcEy4CF48S/wSOWHS7wuEWRhIUs1aH9tQ82zTzUc9Eb3GmH6SYQPsAeRZeQthjRBsNCxj7GbnLX4ZRPJI+PSNcY5edCakCyAYIca4NhKYvlgETH6MUlq3wCLZzETvMboZznB5T0eqqPEMXaELCUcZ4XshiM+URasd/4ZDXoED1+rBfoJKupLkK25uLAUhap0CeW0KhLgbqPsd3o4wReE0o3Nrbrjbeg+wRHfCQsZeG2NHBm5QNQhs7jPsPqd0H5SZcdnb4I2SEdoVxacv8di2V0cY53w9+px/tiXsg8vu3MXabbYimR5ThQ45lGQ35/5MadWeb8b7igE6002sCvNbEzsmIBzLWiE40sLBt+1ggztpnhf/Xd2JH51iMDf/7N8HCeQ/MM/FcZ0DqAkefKbL3/bI8g/hvZAewr6EYlcTWUjxX8D2usbAycgu7icSvejdXw3EWmRLIDcAqE2xgY1IXQyZtTTus0dQAeBZ26EBL1daF/zB3A/oIO6kII39tyypy/B7GyMRgv6IhaX2Fa5hL3erMMpzEYL+hYLZ3CJgK26OJmMJIdwP6CfqyZuVulzirSmsHElUwo6GlrvJ9yj3hGEwp6yHrpKZ8ITijoqR8VryN/AYrtCjVMnyOUAAAAAElFTkSuQmCC\n", "text/latex": [ "$$\\frac{k + y_{b} \\left(x_{0} - x_{b}\\right)}{x_{0} - x_{b}}$$" ], "text/plain": [ "k + y_b⋅(x₀ - x_b)\n", "──────────────────\n", " x₀ - x_b " ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s6 = solveset(s2,y0).args[0]\n", "s6" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAT4AAAAvBAMAAACI67uJAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2ZVESJZiJ2qzKF9OxMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFKklEQVRYCe1YTYgcRRh9Pduz87uzbUwOyoYdcowJRlAMmMPmIEqMMAdHD4IMhPUgiY7nEBxQT0Z2vAiBBQfRgHoZUFBy6lUZWdwl4yEHMYc5eJXdPe3ihtWvqr7qqe6q6W3DnmTq0PX9vO9VdXVXTc8DDmt3DgNQ/noGTBxS6cV9l6dYjz3tykUxrx6Zk425vp1L5z1mF1gRZn3VSpiBvGNoMy9tr2GFgFTe1x0FyRCz7up4IdSW0d827MnmqiOVxltuOQqskGQt7ui4c34v6Wxq/6idTeX1szwVSNbSkuZ2za8SZTXK2ec7VjiV9zsL7gpI1nyrcFvdjZ7fwlVUnmJ8tQV4G3/cdDxAM1wiWKJZvN4gxLeBQg2oW9j8YT1Urnk1aCXrYvvXlZ4E6Pl130d1m0tylHoMX4TPs290ZrjcMBLKtHhLxXO4y7DTdNfd8mXfLjNHk6zvLQSPqyqeX6W9jFydifw28Ak+Cz5CdbXLMe5UWDmFpXiOPIv3+9kGThWbEvgCUApKO8U+1tcTlYr2QzFzyXqlJQGlZvOVZ5rNId0YLmA+lEFgpgMEOEXeV7ghYieaor1BlgqLGFDbVr1xvdKSzpg3mAnxAJ/K6HkxjFiEcrdAQ8KTrM0RmYpWPlrJ+vKPIUVF08+Xdt7WSEbU/EC0wIuYDzioOxFWzTE/m3clqB3gNVlA84NcBL+D6PyQGboI2nybLoLV26vscULPj57DTxyCeL4g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ac{k + y_{a} \\left(x_{0} - x_{a}\\right)}{x_{0} - x_{a}} - \\frac{k + y_{b} \\left(x_{0} - x_{b}\\right)}{x_{0} - x_{b}}$$" ], "text/plain": [ "k + yₐ⋅(x₀ - xₐ) k + y_b⋅(x₀ - x_b)\n", "──────────────── - ──────────────────\n", " x₀ - xₐ x₀ - x_b " ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s7 = s5-s6\n", "s7" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The above expression equates to zero so we can multiply it by effectively anything so we set about removing the denominator expressions" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAskAAAAZBAMAAAAxuq7YAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2ZVESJZiJ2qzKF9OxMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAF9UlEQVRoBe2YTYgcVRDHq2c687WTmVaMoKxsVFCQBCP4BeaQIIJIlD04yUkZkPUQVx1PgkQcEA9qdEfQQCDgKCroxQEPBi/Oqows7pJVyCG4hzl4ld2cdsmGja+qXver9+ZN94A5LduH7tf1/9fvvarp6e4ZgP+znbsvSk3P0lOT90TuQLm3fzatF1l6Wu6eFncg7NW247HvmKX7cvZibgfC9tSWG5PnWbr07o3Hd6B4dbyGSpaenr171ODeY2OLufXhsZIWwn66I0tPz95F6r7m+GJOjpdYOZdhyNIz0nePXG+Nr2VzVDojQ5WmPBsdZ+mjGSZS7JvxzRpNzJzYOOnKFsa/8pY8d12ry+/Dx6nTZOlpyTe9UDXZxMyJjWkVSO1TeWKPy8fsczyTXa6devPuUYeJZOnG6Rnd9ELVHBMzJzZ6Fu4NnYS3XoHplYtL/RF5X7P4Tc/RdJcpIX/jxgZMz8PUQyOpGbqZL1j+++wFTrdJcaETWDldkMzQyzS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UW69djoj6sLYGRTX4X472mdL0m6UM7yWn1QdV+ut/VMrI9jCqcuTjljpDW56IvW59TN39crEdVM5Yw7p1c108t9YX3vdRwP9QgfKmq7hfa8U9fqUbisHqDBNjwgBe1JdHX7Vs85dwv5HUOFOd8mBXIpPqsfqt8xcC6cNIVpnFQcOhOkNbnoCyL3zwZbIGI4ld5EFJnkTDqnPfne+gex3z2G0ZduiF4SttQDTL0KPlHb6qbpxysHR+Vqs8jfD52fQvJavdABvi/zhnoK0zipOHJ6kaIvqIfdXB9ELJ5OHUUUmeR0O1daO3NapFjD2pWOdU4nIX74ZwdDgI9+H3QpZO3CRP/3vCXokyX6qYMnlJ9CAp/VC62eb2o6oJ7CNE4qjpxepOgL6qXl19TO2ysRRSY5vZ2LlzjJUVxhXnuW7k3aC7odMFeYq/B5lu7P2n3R/wD10RlHj6rJ1wAAAABJRU5ErkJggg==\n", "text/latex": [ "$$k x_{a} - k x_{b} + x_{0}^{2} y_{a} - x_{0}^{2} y_{b} - x_{0} x_{a} y_{a} + x_{0} x_{a} y_{b} - x_{0} x_{b} y_{a} + x_{0} x_{b} y_{b} + x_{a} x_{b} y_{a} - x_{a} x_{b} y_{b}$$" ], "text/plain": [ " 2 2 \n", "k⋅xₐ - k⋅x_b + x₀ ⋅yₐ - x₀ ⋅y_b - x₀⋅xₐ⋅yₐ + x₀⋅xₐ⋅y_b - x₀⋅x_b⋅yₐ + x₀⋅x_b⋅y_\n", "\n", " \n", "b + xₐ⋅x_b⋅yₐ - xₐ⋅x_b⋅y_b" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s8 = cancel(s7*(x0-xb)*(x0-xa))\n", "s8" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we solve for $x_0$" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAABbgAAAAyBAMAAABsYaAIAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA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\\{\\frac{x_{a}}{2} + \\frac{x_{b}}{2} - \\frac{1}{2 \\left(y_{a} - y_{b}\\right)} \\sqrt{- \\left(x_{a} - x_{b}\\right) \\left(y_{a} - y_{b}\\right) \\left(4 k - x_{a} y_{a} + x_{a} y_{b} + x_{b} y_{a} - x_{b} y_{b}\\right)}, \\frac{x_{a}}{2} + \\frac{x_{b}}{2} + \\frac{1}{2 \\left(y_{a} - y_{b}\\right)} \\sqrt{- \\left(x_{a} - x_{b}\\right) \\left(y_{a} - y_{b}\\right) \\left(4 k - x_{a} y_{a} + x_{a} y_{b} + x_{b} y_{a} - x_{b} y_{b}\\right)}\\right\\}$$" ], "text/plain": [ "⎧ ________________________________________________________________\n", "⎪xₐ x_b ╲╱ -(xₐ - x_b)⋅(yₐ - y_b)⋅(4⋅k - xₐ⋅yₐ + xₐ⋅y_b + x_b⋅yₐ - x_b⋅y_b\n", "⎨── + ─── - ──────────────────────────────────────────────────────────────────\n", "⎪2 2 2⋅(yₐ - y_b) \n", "⎩ \n", "\n", "__ _____________________________________________________________\n", ") xₐ x_b ╲╱ -(xₐ - x_b)⋅(yₐ - y_b)⋅(4⋅k - xₐ⋅yₐ + xₐ⋅y_b + x_b⋅yₐ - x_b⋅\n", "──, ── + ─── + ───────────────────────────────────────────────────────────────\n", " 2 2 2⋅(yₐ - y_b) \n", " \n", "\n", "_____⎫\n", "y_b) ⎪\n", "─────⎬\n", " ⎪\n", " ⎭" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s9 = solveset(s8,x0)\n", "s9" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAABcgAAAAyBAMAAACaKCWQAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAiUR2q1TvELuZ3WYiMs0DCV8EAAAACXBIWXMAAA7EAAA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nj0T4s5HnuzH8CSAa1rJoAWYjWdbLwIReLnMDNq4i0kjjF1Zotk9g6050FGkaR4SlKzJrUFpNVL+AMC+VtTRrnZPoQnD9Flw2r0BhQrm6BG59HVprWX60oR4JhyFoV0/0EaLjoRFdme4gwK4c2rZFkzB0hhpfrku2kFFiSxMu7LktHu85umnFh+KyJrhVeB/MMSSv96AffZTt3vGb8Aw5exFHp3ywMWBWESxYPAuGYgJ/CqE0t9tVVpZmeYkbykidpCcw64ssewer3lSwXX6QvPCAoypXyv4acM1xu4p30D+FL5QZysOdAUfaNyuLEli93jNu0yXVyflPxfCoUNXXOMdnokqDsheHOiKPsi4Q1mUxOHxmneZLtMtgNNyTLkubd1yeM4Q64XMxYF6TN8jBRzKuj1e8y4T51vIn6jFg07GVtKwe0qLxMOSv4zFgcmovg/4F1dXs3u85i69XPg1dJQ5U4nh/h9ZDs8Ux8Ukz1gcyHT/oCrgUBYpDo/XXJUvg52n943y45WHYLRlH2X3jCzCH5CPtysZiwPtwQcatStLktg9XvNu06VQpxGfFcPGqpBvCVu/ODx/BLgLifRds2zFgXpU38MiY6/5W50Gsy2aYbYRznNx67ZPhlby0e4ZfX7riSZSt+FPtuLAZFzftytLutg9XvOuc+YyjxgXN+Wv37r1X3sIu2ccv3bVxAE78CdbcaA9+iCjdmVJEbvHa95ttow8yiNGv9ztQJ0f/lk/S3GgPs73elfAa55VuyO1kPlw1gF2XvbiQPt4j3avgNc8q2afEMRSPesIOy97caB9vEe7V8Brnk0zqtMO297I6O2avTiwt/h+lKmA19zUxIbsjMFSLTZ7MbIXB/YS3Y+xKeA1t6liYME9BP0PLtkxjptUtnQAAAAASUVORK5CYII=\n", "text/latex": [ "$$\\left ( \\frac{x_{a}}{2} + \\frac{x_{b}}{2} - \\frac{1}{2 \\left(y_{a} - y_{b}\\right)} \\sqrt{- \\left(x_{a} - x_{b}\\right) \\left(y_{a} - y_{b}\\right) \\left(4 k - x_{a} y_{a} + x_{a} y_{b} + x_{b} y_{a} - x_{b} y_{b}\\right)}, \\quad \\frac{x_{a}}{2} + \\frac{x_{b}}{2} + \\frac{1}{2 \\left(y_{a} - y_{b}\\right)} \\sqrt{- \\left(x_{a} - x_{b}\\right) \\left(y_{a} - y_{b}\\right) \\left(4 k - x_{a} y_{a} + x_{a} y_{b} + x_{b} y_{a} - x_{b} y_{b}\\right)}\\right )$$" ], "text/plain": [ "⎛ ________________________________________________________________\n", "⎜xₐ x_b ╲╱ -(xₐ - x_b)⋅(yₐ - y_b)⋅(4⋅k - xₐ⋅yₐ + xₐ⋅y_b + x_b⋅yₐ - x_b⋅y_b\n", "⎜── + ─── - ──────────────────────────────────────────────────────────────────\n", "⎝2 2 2⋅(yₐ - y_b) \n", "\n", "__ _____________________________________________________________\n", ") xₐ x_b ╲╱ -(xₐ - x_b)⋅(yₐ - y_b)⋅(4⋅k - xₐ⋅yₐ + xₐ⋅y_b + x_b⋅yₐ - x_b⋅\n", "──, ── + ─── + ───────────────────────────────────────────────────────────────\n", " 2 2 2⋅(yₐ - y_b) \n", "\n", "_____⎞\n", "y_b) ⎟\n", "─────⎟\n", " ⎠" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s11 = s9.args[0]\n", "s12 = s9.args[1]\n", "s11,s12" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "a=(1,5)\n", "b=(3,2)" ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "scrolled": false }, "outputs": [ { "data": { "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from plotlibs import plot_hyperbolae1\n", "\n", "plot_hyperbolae1(a, b)\n" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY0AAAEICAYAAACj2qi6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW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B/u/u0C+wzK9LWY2amE34SyJrciP8cHgfdFV1G9Edia1fRSTgVbEirhXObI/g4W+g38A3C2mfWJmqrPjtYVlkRPf5FXA7yD0L62G1gP/CFr2xTC1StLgbdnrZ8JDInmjyQkk2XAr4HOZYj5Z8CHc9YNAWZmxbQwKs8RmmHKfV5/DjwLPBN9qQbnxhktn0e42uaFhOJcRmhrXRCV23PjTPJ85js/wFcISQ6gS/S9WxZ9D49M4ByOIzRDPpN1Hs8DPpz5ngLXRuduIeGCgzcnEGfezzEnTgO+H53vZ8m6orKMcXYnJIFeWesq4lwSEtlaYG/0u/kBQh/an4HngT8BfaN9TwF+nPXaq6Lv6TLg/S29l4YRERGRoqWxeUpERBKipCEiIkVT0hARkaIpaYiISNGUNEREpGhKGiIiUjQlDRERKdr/BxsrODgfx3NZAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from plotlibs import plot_hyperbolae2\n", " \n", "plot_hyperbolae2(a,b)" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAqcAAAAXBAMAAADEnvtrAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAImYQu82Z3XZU70SJqzJu81j5AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFCklEQVRYCe2YT2gcVRzHv5vZ7r/ZTBdBpIowVkGPA5U2iJK29KAHMR48eJGlkJKLJlik9VIGistWDV0NgseUQlG8rF4sgmRBkICI66GQg+AgguAliUGoFKK/997M7M57v19wWxYqOIdm5/t9n9/3/WbnN9td4P/jv34F/H2+g41kMh0SANGRokUAIiEiOVEK+X6molb2+LLL0WQ6JACiI0WLAERCRBTxgerkab6d6aiNNl/3Bi9D0mVDdKRoEYBIiIgiZlvUy8tCP1ORt1WiewS7rqYUSZcN2RGiZQASISO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Vqw1u+DdAaOrVJpWNW8cwRmaMEPNZOhhxyYtOpUurCaVBF6cnpk/b+J59bvCG/QVsKCbk0Zr+xeWuBbsh7aR81yEMtkENQscYGaBRfqVoVWrGpZjNFxdpQJm3oqlDKEHsWgYBGqoi4YmtK5++st/pK4ffY/u25RK/9zsJMCHT/WBsGjoM3/r47Ms8fWVTmgbOc9FKDPMV4xe6FlggHQWOORw1OhZtfwu3RWMbnLMvBVLaYIzDKKHmiG0Xm7RolLRJeX+OWgWvmB3cy24E7IGqtETrCHp0PPGIaIBPdQMovXHGOO+kvQscDvSs8AZCH4aTKRDzBAN6KFmUjL9H/v1uC8FB0guAAAAAElFTkSuQmCC\n", "text/latex": [ "$$\\left ( x_{s}, \\quad y_{s}, \\quad x_{d}, \\quad y_{d}, \\quad x^\\prime, \\quad y^\\prime, \\quad x_a^\\prime, \\quad y_a^\\prime, \\quad x_b^\\prime, \\quad y_b^\\prime, \\quad x_d^\\prime, \\quad y_d^\\prime, \\quad x_s^\\prime, \\quad y_s^\\prime\\right )$$" ], "text/plain": [ "(xₛ, yₛ, x_d, y_d, x__\\′, y__\\′, x_a__\\′, y_a__\\′, x_b__\\′, y_b__\\′, x_d__\\′, \n", "y_d__\\′, x_s__\\′, y_s__\\′)" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ " xs,ys, xd,yd = symbols('x_s y_s x_d y_d')\n", "xp,yp,xap,yap,xbp,ybp, xdp, ydp, xsp, ysp = symbols('x^\\prime y^\\prime x_a^\\prime y_a^\\prime x_b^\\prime y_b^\\prime x_d^\\prime y_d^\\prime x_s^\\prime y_s^\\prime')\n", "xs,ys, xd,yd, xp,yp,xap,yap,xbp,ybp,xdp,ydp, xsp, ysp" ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "scrolled": true }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgcAAAAuBAMAAABOs6ffAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAA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GZN39rw872IBF/bMVMhC9+6Y+ddBMHhZB5/SrmhPmUTgh6EovgjWYWs++ClS/8QBIet8dwSzMGXBH8tQfiucBpGr6UT+856N2SK1hJ8bIxwPlWfA6/jTzTwa/xCuc/P2fF423J1gIdvy/VBE/4FHvy5eVzlTRoAAAAASUVORK5CYII=\n", "text/latex": [ "$$\\frac{x_{a}}{2} + \\frac{x_{b}}{2} - \\frac{1}{2 y_{d}} \\sqrt{- x_{d} y_{d} \\left(4 k - x_{a} y_{a} + x_{a} y_{b} + x_{b} y_{a} - x_{b} y_{b}\\right)}$$" ], "text/plain": [ " ____________________________________________________\n", "xₐ x_b ╲╱ -x_d⋅y_d⋅(4⋅k - xₐ⋅yₐ + xₐ⋅y_b + x_b⋅yₐ - x_b⋅y_b) \n", "── + ─── - ──────────────────────────────────────────────────────\n", "2 2 2⋅y_d " ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s15 = s11.subs(((ya-yb,yd),(xa-xb,xd)))\n", "s15" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "x_a/2 + x_b/2 - sqrt(-x_d*y_d*(4*k - x_a*y_a + x_a*y_b + x_b*y_a - x_b*y_b))/(2*y_d)\n" ] } ], "source": [ "print (s15)" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAegAAAAUBAMAAAC0WbPpAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yIma7md12VO9EiauTDfh4AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAE/ElEQVRYCc1XTYhbVRT+3uR/kpjYRXUWdkIUBBHJ0pV5mwHRgrGodecsWqEKdhgtZRa2qT8L6+bNKsbiNCJCuxtBKIqLIAoWwYlu1IX4LMUyC2GC00VLEc85995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WihEETp7GGdw2EAd64koX3vZ673ngS2xoTC+H+gunOnQoFUJAXmd+Qw71z/rlQYkgN7zt3i6dc2cIYyY1Jecn/+m8gtJa/PVxxaTKympPWlY0RG1YCKkdRZwwLIRTpnEGtw1iX0jzZ6i3i+P3cus9UauXB/C6jBZ9/lzFop9/Nm4FoO/nmO6bZpqmzE8KI1ZomIxY2pPiG41VyAACxggaTp6G6RHBcaB6A0dN8nnmTsfkzlqsv0BPLWCE/uG4p+HdQdlvf+swKL2GxSHO5ZYNM2oap9krEZMqKxu75aIhajKAVMYIDE+ZRslEBMeBGSDv6+yHD3tJpjN/jeg3suIcQ5G+YqhsXz5lytX6Ln2h8cRvdKGYUdM4zV6JmFRNkRUNUZMBbKXJGJ4yjaJEBNeBrpb/902naesxtXEQlf7rSZyrvZaGFXOmprBVST0Jm6IWsdP2nQbagSldMsn0NeerPTrjU8IwZ2ia0um/3aa5/gWUTZ1KUuIRVAAAAABJRU5ErkJggg==\n", "text/latex": [ "$$- \\left(x_{a} - x_{b}\\right) \\left(y_{a} - y_{b}\\right) \\left(4 k - x_{a} y_{a} + x_{a} y_{b} + x_{b} y_{a} - x_{b} y_{b}\\right)$$" ], "text/plain": [ "-(xₐ - x_b)⋅(yₐ - y_b)⋅(4⋅k - xₐ⋅yₐ + xₐ⋅y_b + x_b⋅yₐ - x_b⋅y_b)" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s13 = s11.args[2].args[1].args[0]\n", "s13" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfEAAAAUBAMAAABv4hnLAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAImYQu82Z3XZU70SJqzJu81j5AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFS0lEQVRYCZWYTWhcVRTHz+TNZ2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eLe5q2n14ePqDq3QexE2XtldeBspDulFOjbajnypuEWZ2eHw7A/pSZrvD9QSTeIXBQXyFodZCJs5vcO5eO4Ol0I0ndtEeoe7gcesf4Zmqdxt8u2yVr9X3CmEdFoqXoCfd7DysH6XztNfViZn4hZleQAHK61NL9AfNDMaKI8m8YuCgi7SZpiBUAUtA3Q6gYfnFkwhms59xPKAH+MTq8fPhTTdrw4Vm/4MtlZ6jxE2gotw8IvAT0mw1btDX9Oap9RuUZZGWpkoGmf+DZ+n6lKkPJrEL8ov04nVS60MhCpoGaDTCTw8ecd0xRSiljuJGBEj+d443yo+ruF0CnXYRaMUoGn9FbHcDu7Qqac8DSZ4jUR5TALjv0wacLXeFFUUi2TmbnaTWTEknWuJFE19e/UQTec+IjCT3wrTre3v3ILm/M2pBTy+MU+PEN2m+Q36vHk/5Lk1cYvypjihHGeBe3lNUVAcaAf3ycztYptZMeAuuAlIino/plKIRm4TMSKPk7pKfevTc7agPfv7V5yrX4jFFr2B955+er8XWgGfiZuVQVsCUE5kSdGTVAmLMSXzZHWSWTMkAX0ieNh5bcFJEAVzgv8JmMsTLND13ihdm+eJWxNA+f/sKNVXX89bkmROblGeipyCdoWnTNyMKJiF0BPkTqb0FZ3NjbrOQ3qyv9Jdhd+BoT/PzgxDNiKeyQsyIsYDt76x/8BZ1dIAAAAASUVORK5CYII=\n", "text/latex": [ "$$\\left(x_{a} - x_{b}\\right) \\left(y_{a} - y_{b}\\right) \\left(- 4 k + x_{a} \\left(y_{a} - y_{b}\\right) + x_{b} \\left(- y_{a} + y_{b}\\right)\\right)$$" ], "text/plain": [ "(xₐ - x_b)⋅(yₐ - y_b)⋅(-4⋅k + xₐ⋅(yₐ - y_b) + x_b⋅(-yₐ + y_b))" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "factor(s13,(xa,xb,ya-yb))\n" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAABUAAAAlBAMAAABfQ78IAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEHarIkSJZt3NuzJUme9mZ+xlAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAwklEQVQYGWNgEFJ2VVNgAAPGBPYmjgkQNpsA20dWB6g4A9cCCAtE8isg2Ps3ANlsSgcYGHgE9BmYBBhSuRcwMMQfWM/gzsCw6qAAA4OwktD1AgYG5/8OQJVgwOPArABlMnBs4AWZAAY85aowJpn0fzj4QKYJCG2yt1bDOIwGDPkBUA6vAAPfAyibr4GB+QuUzfmRgfk3lA2kOD4i2PEJCHYzgsl7AcHWRTB5LjC4wHjbGBhUoGyWtrTLDVA2J9CbIDYAN9ouZ4RSpL0AAAAASUVORK5CYII=\n", "text/latex": [ "$$\\frac{x_{s}}{2}$$" ], "text/plain": [ "xₛ\n", "──\n", "2 " ] }, "execution_count": 20, "metadata": {}, "output_type": "execute_result" } ], "source": [ "e2 = xs/2\n", "e2" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAANwAAAAuBAMAAACxLmqgAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAVO8Qq4lmdpnNuzJE3SJtjddMAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAD8UlEQVRYCe1WTWhjVRT+kpv0vSQvaZiFtQgScTFdOUGFtouSt1CqMmBcSOtC5oEMjLOYxlptZmOzKP1RsBFcNAhSy6CgiwZBtw0iuEyYUWcxzBBddDF0tJJRF5Xquffd+3Lz88Is8upCD/Tdc77z87137805Bf4VOZM9RVr27IunSQcs/E83vOP9z22m+ffwRR1Hn828q3wBrH3ozgdAo0r20qXKyhfAutLzMzdrAdDIkqvntp2u6tNdt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RgOat20xJQJm+wd0YFysMtSbJwAAAABJRU5ErkJggg==\n", "text/latex": [ "$$\\frac{1}{2 y_{d}} \\sqrt{x_{d} y_{d} \\left(- 4 k + x_{d} y_{d}\\right)}$$" ], "text/plain": [ " __________________________\n", "╲╱ x_d⋅y_d⋅(-4⋅k + x_d⋅y_d) \n", "────────────────────────────\n", " 2⋅y_d " ] }, "execution_count": 21, "metadata": {}, "output_type": "execute_result" } ], "source": [ "e3 = sqrt(xd*yd*(xd*yd - 4*k))/(2*yd)\n", "e3" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAaUAAAA4BAMAAACvc/q0AAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yu+/dmVREiWYidqtuSOxyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGBklEQVRoBe1ZW4gbVRj+JvdMks1YtMXLNmF9aB+KREF8UNlVLAql7fpifVBMEYViK3HV9qHWDVWwqLUBEaGlJvTBSrUQRSjUivOgYumDqVii1d0OVRAvlV32pbVr1/+cmcmcuW1zJRvpgU3+81++//9nzjmZbxboxbj+kV6g9hlzVZ/z9yL9xV6A9hczPtvf/L3ILud7gdpfzEAhdkztbwldz54p/lyudh21v4D7hpWb+1tB97O/WOg+Zr8Rn/2+1u8Sup1fupS81G3MfuMlZqSLcr+L6HL+oTHM/d96ChVRP93l63QN7toVWHpXYO/SK6njiq711PEl7A3A8C4kH7agjfsk1Wv4SrHUgyVV3kFqJnW0YlRt9CTHx3FusBqxqk0WJxAaO4637D19E83iAV21bISNW62QpSo1CpXwONK1LUizhXZoZOSpkZHbSFLCNfzrKH5hCQ97qfS2Y/T2OYSLuto898pKcM7uOEAzWmRngvOIVO09TSA1jhXTA7DkPK51SMOG4CwiBkcz79MGhDTpSTJ0OoJjnSK0Hh/V4pfpPtH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TKhUzTo+FOTFLG7InUYyUvP6XuQWN/cATZTS8ZmU0gGhHPYpprhafjSw/Lhk96VqzhAl6M5TSgOUO55anPkQx5vnmYp9yUONbiKeJzmONlY8DMfYmzWMdp222Z1jLkUncbqp4JGd4ejFHTUO73z5E0XxHY4fdhsosWx3buTr5T1yz7AR0Nzh7eyw4V2X6kGpZF5N4JGd4XJKyizk3Y/MhinSkuodcSN6YT40B7+q2tWLVHIizt/d+qPOeJPJsZvBIzvC4JII2E96sT6Lg5UmLKVoZqgEf6tby315elu6UJbYgnWjBtxXX/Xjb7R6vxHORUjiXmDJ2f2SQXu0GV++5z93THXteVSK5Ml7HuG5ky3BgRpg/0DnLfWJhgd7T3I81Qc1pGuj5LViHzakfB7oHZ/F/xLPY/3lTr9ScoUt2fuDIEiztP6zmhLqTZKzQAAAAAElFTkSuQmCC\n", "text/latex": [ "$$- \\frac{k}{x_{a} - \\frac{x_{s}}{2} - \\frac{1}{2 y_{d}} \\sqrt{x_{d} y_{d} \\left(- 4 k + x_{d} y_{d}\\right)}} - y_{0} + y_{a}$$" ], "text/plain": [ " k \n", "- ────────────────────────────────────── - y₀ + yₐ\n", " __________________________ \n", " xₛ ╲╱ x_d⋅y_d⋅(-4⋅k + x_d⋅y_d) \n", " xₐ - ── - ──────────────────────────── \n", " 2 2⋅y_d " ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s1.subs(((x0,e2+e3),))" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAa0AAAA4BAMAAAC8pLpAAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yu+/dmVREiWYidqtuSOxyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGwElEQVRoBdVZXYwTVRQ+s+22O93OdiCIEd1tsz5gIpFqNDxossRAQo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Z2ZItNR6ZmpLES1C1fLvr2Uxi0jLQNVge1X02a5msAH5XE1D32ayF8nrzYAsFi6H+B6mFszFFI8olAAAAAElFTkSuQmCC\n", "text/latex": [ "$$- \\frac{k}{\\frac{x_{d}}{2} - \\frac{1}{2 y_{d}} \\sqrt{x_{d} y_{d} \\left(- 4 k + x_{d} y_{d}\\right)}} - y_{0} + \\frac{y_{d}}{2} + \\frac{y_{s}}{2}$$" ], "text/plain": [ " k y_d yₛ\n", "- ────────────────────────────────── - y₀ + ─── + ──\n", " __________________________ 2 2 \n", " x_d ╲╱ x_d⋅y_d⋅(-4⋅k + x_d⋅y_d) \n", " ─── - ──────────────────────────── \n", " 2 2⋅y_d " ] }, "execution_count": 23, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s21 = s1.subs(((x0,e2+e3),(xa,xs/2+xd/2),(ya,ys/2+yd/2)))\n", "s21" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAa0AAAA4BAMAAAC8pLpAAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yu+/dmVREiWYidqtuSOxyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAG7UlEQVRoBdVZa4gbVRQ+s8kmO9nMZlpqxepuQgQrWGwUpT8UtkgLhWpdxSdo3VoUi33EVrs/6tpYxIp95Y8Kat1UxJbWxQhisVqcH1ot/dGsKKmPbUMRwUdslkXZtivruXfmztyZO5NNdtKaXAj33O8758w5mTuTc3MAGjWkpf2NctVcftrSzRVPo6KJZRrlqbn8DKnNFU+jonm/UY6azM982PH8ZQlJKhbgK9fN0T0I0XsaHIM0oRy/2GCf7u4ich+cQWprysnnXgOl4gR9rjvGRqS8Tx+1mX8TTsASVI071aOZjRBc7ER9rsMP+nRQs7naXoB/UXub00KCRyFWcKI+16HyXT491Gw+pA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{d}}{2} + \\frac{y_{s}}{2}$$" ], "text/plain": [ " k y_d yₛ\n", "- ────────────────────────────────── - y₀ + ─── + ──\n", " __________________________ 2 2 \n", " x_d ╲╱ x_d⋅y_d⋅(-4⋅k + x_d⋅y_d) \n", " ─── + ──────────────────────────── \n", " 2 2⋅y_d " ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s22=s1.subs(((x0,e2-e3),(xa,xs/2+xd/2),(ya,ys/2+yd/2)))\n", "s22" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAPBAMAAAAv0UM9AAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEGZURLuZMu/ddqvNiSJwwRR/AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAYElEQVQIHWNgYGBUZgACV+EEBgb2RoaPDAycCgyfGRg0GBg+MTBMY2D/zMDyhYHrCwP37907PjBwHmDgB6ILDPUGDPIGDBkMDPIODL8YGDgcuCYwMLAtePkAaGJWIgMDAFkWFM4t8HnwAAAAAElFTkSuQmCC\n", "text/latex": [ "$$\\theta$$" ], "text/plain": [ "θ" ] }, "execution_count": 25, "metadata": {}, "output_type": "execute_result" } ], "source": [ "theta = symbols('theta')\n", "theta" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKUAAAAyBAMAAADPZgYSAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMA74lUIhAymc12ZqtE3btMVlFBAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEkUlEQVRYCe1YXWgcVRg92cxMdjfZH6hJQQtdSiFG+rBCQRCqU9oqFFrXClYUzQZ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zyDrCNwS56Rp1JXiadAylkJ1BVvgu4FvaohpytSjLMI3+kUwB1p/CNwS57BcYcu5sFViThHin17B9EBYsdLybfP6zOVsSviHI5bOdITXZKrDmgtYcL+J5ag9pWuw77neB68I3CE3JbdU02CoENGnu465wLedIoQV6nNeEbxBzl1w+bRlyPdkqBDRpj/rcFFPClmGabFBfFVbjLPsGsUeSG9qjrE0TV3OnN2jA2WFTj7BloLSw3hpBsiB8g3jbJJf9AkOOk6yCNbfy6NzK01fuoCjN2Jx6idvDlsH85JCNB9e9DPYNLVz2Cwy5R96DvvP3JtCDZdBcsF9gRGtyXhBIOLISX2hulxxCBstDL5ZBcbvkOpFnWVXx5U9EFpyTGcqLxMwdfB4QerIMkovTogvdotdTtd5YSZq34m/tW/A/gX8B6jNWDVOwa14AAAAASUVORK5CYII=\n", "text/latex": [ "$$\\left[\\begin{matrix}\\cos{\\left (\\theta \\right )} & - \\sin{\\left (\\theta \\right )}\\\\\\sin{\\left (\\theta \\right )} & \\cos{\\left (\\theta \\right )}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡cos(θ) -sin(θ)⎤\n", "⎢ ⎥\n", "⎣sin(θ) cos(θ) ⎦" ] }, "execution_count": 26, "metadata": {}, "output_type": "execute_result" } ], "source": [ "m = Matrix([[cos(theta), -sin(theta)],[sin(theta), cos(theta)]])\n", "m" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAGkAAAA/BAMAAAARe/vjAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMARM1UEHaJu2YiMquZ3e8bpyzaAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACU0lEQVRIDZ2XsU4bQRCGxyAuwcgEKRJFKIxCF6VAuiIlp1Ck5RFoEyFBQYlEmyKFpTwAKC8QxBO4iJQ6RYo8RRKJhurYhZvd+Wdnhzhb+Jj9/+/WOnvmxzTt+21aZJ33/S5N23ZjEYiet3uBysizPqxcFn+xvg7UZuHDDdaROm2+f0MfVqwDtXzwnq7RB1XSgXpCv+jrDIxQJB2oj/SDLpznmXSgTsKd9zq4PRRJT9RnopXd4PkJvlyAztTouKN3wdPMw4uxUGeKlg7pQ3B/Moj7LdATNbpZvSIaHY4ubQ70RNHrtRnRl/ZNZ1OgZ2q6Fey/619DqWdq6bZyyLAt9UyND3xK6pkymbcv43qlNaZiYw1LW+5rFsM11EyZ1uqmpB5pLjo664b7SMpvLmpma9sG5TcXTWZj/nDkWX5z0WRj9a9xlt9cAVi+Malacw3mCX8R5DukZj7IlcsR7wNVba4H99O5RdWb68G9SS8GTJ7lNFd0j3faU4Nymiu61/v+j0ER8fQfRLhITb5DIp7+YB8KqSHF09+ipAZUmv4GBRpQafobFGhApelvUKABdRLctXQALVEw/dVZhcYUTn+kSo0pNx0gGeIdEwXTH8+iQksUTH9FFVqm5PTXlNYyJae/prSWKTn9NaW1TGmnVzOF0x+JUmMKfY9VkvLSISdDvKOknHQQyaApJx1EMmjKSQeRDJqqN1dwpmQoKScdJpwMBdXM45a9UjJEWT7D+r9eRDkZNOWlQ04GTTnpIJJBU046iGTQVKz/bcWn8V+/bvYX/3XTdnfgqevwf4obGgAAAABJRU5ErkJggg==\n", "text/latex": [ "$$\\left[\\begin{matrix}\\frac{\\sqrt{2}}{2} & - \\frac{\\sqrt{2}}{2}\\\\\\frac{\\sqrt{2}}{2} & \\frac{\\sqrt{2}}{2}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡√2 -√2 ⎤\n", "⎢── ────⎥\n", "⎢2 2 ⎥\n", "⎢ ⎥\n", "⎢√2 √2 ⎥\n", "⎢── ── ⎥\n", "⎣2 2 ⎦" ] }, "execution_count": 27, "metadata": {}, "output_type": "execute_result" } ], "source": [ "mplus = m.subs(theta, pi/4)\n", "mplus" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "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"$$\\left[\\begin{matrix}\\frac{\\sqrt{2}}{2} & \\frac{\\sqrt{2}}{2}\\\\- \\frac{\\sqrt{2}}{2} & \\frac{\\sqrt{2}}{2}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡ √2 √2⎤\n", "⎢ ── ──⎥\n", "⎢ 2 2 ⎥\n", "⎢ ⎥\n", "⎢-√2 √2⎥\n", "⎢──── ──⎥\n", "⎣ 2 2 ⎦" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "mminus = m.subs(theta, -pi/4)\n", "mminus" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAEYAAAAyBAMAAAATs7BgAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMA74lUIhAymc12ZqtE3btMVlFBAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACoklEQVQ4EdWVy2sTcRDHv01307w3UKqghQYRSkUwBUEQhBWqB6EYH1hRNAmeBCWxPqC3KOJJMHipCmJEQW9G8CI5ZP8AH0EFxYs96KFeWlvERwL1O791d1PZLL06h9/+mPn8Zua3M7OLkZUlBMm2lW8YnNgThODwxDjW+RH7qDyWxXZlK/oy+hyQ+LIDcVMgfyZCWzFn5PRKb+YRTR9hZDHWm3kHxNIwajjQk9FaQLKMUhYRi5Cdz9Sm89DHblo4vfMWldEy8NrCPQsh7mxGG0TRPGtinvdJUpmqAc1GY4QRKw4TqWC88AYonRlClMpkFvgA/AT6GdX2k6fH8DJgZD7Nm1T2WcCS0oQXHaZU5YkOmbmDN37YjL6MgTRPuozr50IOT+iDsfQODJ5MtBw/zAfZ9cznRRXxmp3zMO7S7OWsbUDILBZwJTGElAl14xmNLxIDGS72+zk+sxna9KiV2HJnK5USYWo2x12k4DLcrBJxoeSErP51l5oqCaipJCUS1BvSYyI26x8L0quUh2rtwSibs/wfjFbju3mAflOl7eW8m3pHTnLz6lAZz5TCY0oZhwCusruG8B1H/2E8ArEy+6yGZYSqovX8dDFJE7gP/IaeXs3sLbjUJHfvVc9f9xiOnrZQD1++dPu5KGfZZh1EOQWjLqNGL1JHch77TWq/AvF24+ki8Nhl2MZRpOpIqe8A8JYpV2BUgF0uAxk9YWiQmwzLOMonASWPkdETZs5l8lmco91jNBm9Loax8hZ+kXnp+knI6HUxzLnPirZoX5VzymQgJxZvPFCdNMlMe344euFm+0izfWphI7WMoM9cFPM1l5FNt0gtlOgSz79eUlMlATXF579MQG9AekzEZn17A9KrlJipHv6MMrlLcU3/pjX84/4AZSW6ENk2UkMAAAAASUVORK5CYII=\n", "text/latex": [ "$$\\left[\\begin{matrix}\\cos{\\left (\\theta \\right )}\\\\\\sin{\\left (\\theta \\right )}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡cos(θ)⎤\n", "⎢ ⎥\n", "⎣sin(θ)⎦" ] }, "execution_count": 29, "metadata": {}, "output_type": "execute_result" } ], "source": [ "m*Matrix([1,0])" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyBAMAAADb31q2AAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMA74lUIhAyzXZmu91EmasKDWtxAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACv0lEQVRIDd2WTWgTQRTH/00zm6QxTUAtCEqDCHqwsAdPirjF9qBFiHoQFWm9qKc2B7EXkUU9CFKNH2AvQoWK6EECFkRBWD2JHowFoQcPCip4MNbWz5I2/t8k2cZuPrZX/7Azw8xv37438+ax6CzOwI8CxWICK3t6/bBQPTsT6GiI7uLqQRNbBDJqwME1i6+rMWDF7e1otzhXCzaqYggROpqKp1S6DsxpVzc5eoS4iU0c1LLskhxMAJEE4hnsrQMHj7l4MAtEcxgyEXK8lo1zo+ndCzi+7sQlm6+Ec8ArB5cdBDha6sYhIIszwGM7+J1wWwb4ms930pm0F36ago37wC3gD+GoCTwEfgGt2QqshrUGuDp3HgLfAX4TbnGAGRizBKcrMKfLUhuLOYHvubCaRSxRG+5FpFAF0w1VQNzmMbpuVOwCz4HPVbAEuBYXuV4nwHHxoeyGbNhUkCeDWNLr87PRq85g8eNg8dPWb+9KHz8ykiIcGvDCnP5HYlTrMNulh1JecjtJJC0/idRmlViVZt/MshorwfqlZjDkWlHXpWkKC1TR/wYHmUXqGlotPwHyiuHF/hw++IFPcmdX4wcO+IAjTM9oBrMI2GW6wT5HLeCK3FuVaA73EXmiL+tpL6wmu0zsu7AZUmi4PMLcLyBcALq8cLdprDIm0GbrQgPcBdoX8u+ngRteeBitHdEkjJ+60AAPGF8acX5kmwdW85xiBcSMLjRyqxFP6pkhD2xIBdrhAHO60Gi438RrMeGBXcvzutBoN/odXcReemAMs/q15GAUdKHRAbY44SzBGgF2Z7DB6EAoyQDHiXDDYnafxdEkH1HVCaovZy3sWf8WUmi4xI+rqTcc4JQ0VBVcmlhs5bi1lLgiagBLImn5SSTtuNB+UhSS/CKJVquBG5BrRUUs3bFpBFcYtye8rF+I5fyc/AVSG7nGoQPEYwAAAABJRU5ErkJggg==\n", "text/latex": [ "$$\\left[\\begin{matrix}- \\sin{\\left (\\theta \\right )}\\\\\\cos{\\left (\\theta \\right )}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡-sin(θ)⎤\n", "⎢ ⎥\n", "⎣cos(θ) ⎦" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "m*Matrix([0,1])" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAIEAAAA/BAMAAAA1TrZmAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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iGEZ/ATFhVVCmtAtdAAAAAElFTkSuQmCC\n", "text/latex": [ "$$\\left[\\begin{matrix}\\frac{\\sqrt{2} x_d^\\prime}{2} - \\frac{\\sqrt{2} y_d^\\prime}{2}\\\\\\frac{\\sqrt{2} x_d^\\prime}{2} + \\frac{\\sqrt{2} y_d^\\prime}{2}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡√2⋅x_d__\\′ √2⋅y_d__\\′⎤\n", "⎢────────── - ──────────⎥\n", "⎢ 2 2 ⎥\n", "⎢ ⎥\n", "⎢√2⋅x_d__\\′ √2⋅y_d__\\′⎥\n", "⎢────────── + ──────────⎥\n", "⎣ 2 2 ⎦" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "mp = mplus*Matrix([xdp,ydp])\n", "mp" ] }, { "cell_type": "code", "execution_count": 32, "metadata": { "scrolled": true }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAJEAAAA/BAMAAAAS4DeOAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMARM1UEHaJu2YiMquZ3e8bpyzaAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADSklEQVRYCbWYPYgTQRTH3yZmc7dxY/AghackxMav4mDR1kUFCwtjcVxxCuHw4JCAV6QULhZ3WAa0116QQ7BPJSIICjZaiLVVhGus4szuzseb9+aSCE5x+2bm937Z5DbDn0BrOm2DGZWpGBMzZyoG2ZtO16CVJA0Lb+o66OkSFwyyklwXJowNoP8kzZaqY7yjZyxSd03lbjiqtbOmu6nuRQWPEFMV4lH0J+s8QP1mwiPE9AzixvLvrG1gmlHFI8S0K5rKR7D9cfPVGuo3kxwJNiFOLQSZngNU5F7craRv44bpNZVBwlPpG7MOYJuCxynclpt9iOCCTenaQl6cgw29LgrbBKUePBJrS2PxJ/vQP4kCDwt5D+8ATn5W+8gUHC0fio0mnIFoEonqrML01UK+wC+AYKy2kAmu1EYA0flk8DJshwLZUZi5agS+BxOAcKi2sKm1Ktbr4mt35+n2Q1ha/6awq6oAjcDqRhv2H4iXzgc2lfJHsti7Bj+LCoxJIydG1WG5V1cE/sQh6uoNUVyMDtXUmDRS652G0ui1IhyTXs6Kr5V7asGY1AoEBz3xaK431AJ+d2o1vzb3P6gFxiS3gp37Q4UcZ1KMuHpMFoHenTws3TER8Fan86PTuSzb3G05L3T/554KufjeFYemXqDvjiLcPelD029iEM6kD02/iUFYkzo0jzFRhDNlh6axyIo+BeJcxYM3xehbIzpu4S4xIwhv6pNGskAQ1pQdmqQXLVCENclDc8agCGeSh+YMEYNwJnlozjAxCGeaYfFs8yYmILn9BOFNTEByTQThTWxAwi6CsCY+ICETRVgTH5CQiSKsiQ9IyEQR1rQrmhbOUMRkAtKCGco1WQFpwQzlmv49QxGTFZAWy1DE5M9Q5gRmMxQ16YC0YIaiJh2Qsudn/gxFTTogZab5MxQ1oUcZ5s9Qs0zzZ6jCdKMjxyV8P/ZsyyQfe9mq3XviAlJxqKungEOE0TVZL+KWyuSuF3OviQYkYsKIz8QEJNfkID4TE5Bck4N4TTQgERNGfCYmQ9HkgzKU3xS7GYr+zxDiN5GARE0I8ZpoQCImjHhNNCARE0akCf9CkzcwAck1IWRP/kJzE/9CkzcwAck1IWQlSdK/TzlaA+I0GE8AAAAASUVORK5CYII=\n", "text/latex": [ "$$\\left[\\begin{matrix}\\frac{\\sqrt{2} x_d^\\prime}{2} + \\frac{\\sqrt{2} y_d^\\prime}{2}\\\\- \\frac{\\sqrt{2} x_d^\\prime}{2} + \\frac{\\sqrt{2} y_d^\\prime}{2}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡ √2⋅x_d__\\′ √2⋅y_d__\\′ ⎤\n", "⎢ ────────── + ────────── ⎥\n", "⎢ 2 2 ⎥\n", "⎢ ⎥\n", "⎢ √2⋅x_d__\\′ √2⋅y_d__\\′⎥\n", "⎢- ────────── + ──────────⎥\n", "⎣ 2 2 ⎦" ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "mm = mminus*Matrix([xdp,ydp])\n", "mm" ] }, { "cell_type": "code", "execution_count": 33, "metadata": { "scrolled": true }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAI8AAAA/BAMAAAArh4bVAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMARM1UEHaJu2YiMquZ3e8bpyzaAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADZ0lEQVRYCZ2Yv2sTYRjHn2vSS3MxNVAsokNCBBGxWDjEsa86iDhYcHTwBitUCgbp4FBoRZQODgFHhwbB2VJQcDtEEJwUzOAm/gO2kMXpfN+7e388z/te9O5d7vnxvc89ubu8+RLoJkkP9Dqe8KVTV3TXkmwnyTJ0w7BjyBdV7EUqRIFRl+KFcIWDkAo2/c+fskojxh2ZNZiSbMkazFNQbXUdDrL2LaZkKLgEUlKfqIYFasAPeDtM+8+VCgcDJZmLVMcC7cI32Mvu2aZSoWBuR0kaTHUs0IC3VhisfbkzWlYqFDREtsJO7MP3mm4g0EuAWXH2GGbZQTsbS0tF1OTt2yIYQzQJfoooXybIe8jgOq/7MQRwLhfgw+IE6gNe8uPmla+zIpLLBMFMBA9444Vo/pEKfDwL/ohXuORY1Fo1egjkTZr7AF7kjSA4DAyVDrvsFU+EpN2ZH+k6eY8utIYAr8PLbM/v+YZKhzPxB54ISXuE3mQ0EXRPc9Vv/lW7+WTtHnhP5ew1GYB3xGdOJd67R4aCTDSD7kxruMNPEkuD4CKfOV034DFoBQEF6spCG3wcpacg0Ju8BO+9nqEgICnKjuv1KC8YEynJyfsAWjEVtPuMTQGJllZMBeUUfnBNpLtpZD41se/RxUV+v7/0q98XTyvdPYkkB5qgvOQ4lJxIEtT+Jwv2R9vYYqqZBa6J5P6npXQif9jq6W4auUBqi1RaCmoPA/TqcqELpLbIYlCneaSaWeACpVsk0tGJ+Auht/1poDHCANQZKUAbfZl41zmRH9PzrHyDVpygdIukSpTPxSjliQuUbpFUiPNFOIULTpDY/4iMpMGZkP7ouSYSW+T0NZ8kh0ThAhHJ/6VuUAWP5AZJ2yN+eNwDGfVM7AZV8EhOUBWP5ARV8UhOUBWP5AQN+A0u65EsUFWPREGVPRIFVfZIFqiqR7JAUOSR9Hbr9Eg2qKJHskEVPZINquiRbBD+tmsHpO+RVhge6V8g7YBcIIHMFTnoal+s8/paJDKsDenIlE5EzE+aZlo5UYFHoiB5AfsoQXYnrRSBSnukIlBpj1QEKu2RikClPVIRyPZItrVBHqkYRD2S/bTapkcqBPmxfSapII9UCCrrkYpApT2SAOE/WbL5S3qkbfEnyzX8J0sGKumRFsKQ/QVaTmS1T8WiywAAAABJRU5ErkJggg==\n", "text/latex": [ "$$\\left[\\begin{matrix}\\frac{\\sqrt{2} x_s^\\prime}{2} + \\frac{\\sqrt{2} y_s^\\prime}{2}\\\\- \\frac{\\sqrt{2} x_s^\\prime}{2} + \\frac{\\sqrt{2} y_s^\\prime}{2}\\end{matrix}\\right]$$" ], "text/plain": [ "⎡ √2⋅x_s__\\′ √2⋅y_s__\\′ ⎤\n", "⎢ ────────── + ────────── ⎥\n", "⎢ 2 2 ⎥\n", "⎢ ⎥\n", "⎢ √2⋅x_s__\\′ √2⋅y_s__\\′⎥\n", "⎢- ────────── + ──────────⎥\n", "⎣ 2 2 ⎦" ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "source": [ "mms = mminus*Matrix([xsp, ysp])\n", "mms" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we want to look at the value of x0 after doing our 45 degree rotation to the right" ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [], "source": [ "import plotlibs" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [], "source": [ "a=(0,2)\n", "b=(2,6)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Compute the space time interval of these two points. If the result is > 0 they are time-like, if < 0 they are space-like. \n", "\n", "* Time-like interval - where $\\Delta S^2 > 0$ , describes events within A's\n", "lightcone. These events are causally related to A, and there will be some\n", "inertial frame where A and C occur at the same place but at different\n", "times. \n", "* Space-like interval - where $\\Delta S^2 < 0$ , describes events outside A's\n", "lightcone. These events are not causally related to A, and there will be\n", "some inertial frame where A and C occur at the same time but at different\n", "places.\n", "* Light-like interval - where $\\Delta S^2 = 0$, describes events on A's lightcone.\n", "These events are causally related to A, but they can only be linked to A by\n", "a light signal." ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAACMAAAAPBAMAAACcmWsnAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM0yVO+riWZ2mbtE3SJy2j1IAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAhElEQVQYGWNgQAaMq3YbIPFZAhkYxBjY/yCExMo+MjAsZGAIRQgxcACFYhkY8h8gxEBC+gIM+UiGgYSA4L4AqioGBp7vCBGwWQwMvAkMDEJKIKDMABVahaQIIsS5AEPIi4HvAUIQZCNzAQMnkhAnUOhteVUuQhFX6qcVDPr///9FCCFYAFrNIGCqjzdWAAAAAElFTkSuQmCC\n", "text/latex": [ "$$-12$$" ], "text/plain": [ "-12" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(a[0]-b[0])**2 - (a[1]-b[1])**2" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "ename": "NameError", "evalue": "name 'reload' is not defined", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mreload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mplotlibs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mplotlibs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot_hyperbolae3\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mb\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mNameError\u001b[0m: name 'reload' is not defined" ] } ], "source": [ "reload(plotlibs)\n", "plotlibs.plot_hyperbolae3(a,b)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "anaconda-cloud": {}, "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.7.3" } }, "nbformat": 4, "nbformat_minor": 1 }