From 6e122cf6e899316b0d9a7c5439530e7f8e24a27d Mon Sep 17 00:00:00 2001 From: "moritz.buchhorn" <moritz.buchhorn@stud.tu-darmstadt.de> Date: Tue, 8 Oct 2024 11:45:40 +0200 Subject: [PATCH] First draft on first week --- 01-intro/01-intro.ipynb | 1383 +++++++++++++++++++++++++++++++++++++++ 01-intro/h2.inp | 6 + 2 files changed, 1389 insertions(+) create mode 100644 01-intro/01-intro.ipynb create mode 100644 01-intro/h2.inp diff --git a/01-intro/01-intro.ipynb b/01-intro/01-intro.ipynb new file mode 100644 index 0000000..eee07f1 --- /dev/null +++ b/01-intro/01-intro.ipynb @@ -0,0 +1,1383 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# B.CTC: Einführung und Tests\n", + "\n", + "Dieses Notebook ist ein vereinfachtes Beispiel für die Notebooks, die Sie in den kommenden Wochen zur Veranschaulichung der Inhalte erhalten werden. Jupyter Notebooks bestehen aus Zellen, die entweder Text (wie diese hier) oder ausführbaren Code enthalten können. Sie werden in diesem Modul keine eigenen Programme selbst schreiben, aber Anpassungen an bestehende Zellen machen.\n", + "\n", + "Sie können jedes Notebook nach Ihrem Belieben verändern. Machen Sie sich keine Sorgen, dass etwas danach nicht mehr funktioniert; Sie können das ursprüngliche Notebook jederzeit neu herunterladen. Bitte installieren Sie keine neue Software, außer eine Aufgabe fordert Sie explizit dazu auf." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Live-Erklärung für:\n", + "- Ordneransicht\n", + "- Launcher\n", + " - Text\n", + " - Terminal\n", + "- Ausführen von Zellen (Shift-Enter / Strg-Enter)\n", + "- Kernel-Reset und Variablenlebensdauer\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Module laden\n", + "Die folgende Zelle ist eine Code-Zelle, das heißt sie enthält ausführbaren Python-Code. In diesem Fall befinden sich hier die Importbefehle für Module, die in der restlichen Übung benutzt werden. Führen Sie die Zelle aus. Wenn keine Fehlermeldung auftritt, ist alles gut gelaufen und die Module sind jetzt im Notebook verfügbar." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np\n", + "import plotly.graph_objects as go" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Plotly\n", + "Plotly ist ein Python-Modul zum Darstellen von Graphen. In der nächsten Zelle werden wir ein paar Datenpunkte für eine einfache Gausskurve erzeugen und diese anschließend mit Plotly plotten." + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [], + "source": [ + "def gaussian(x, d, a):\n", + " \"\"\"Definiert eine Funktion, die den Wert einer Gaußkurve am Punkt x zurückliefert, mit den Parametern d und a\"\"\"\n", + " return d * np.exp(-a * x**2)\n", + "\n", + "x_values = np.linspace(-5, 5, 100) # np.linspace erzeugt eine Liste von 100 Werten mit gleichem Abstand zwischen -5 und 5\n", + "y_values_11 = np.array([gaussian(x, 1, 1) for x in x_values]) # erzeugt eine neue Liste mit den Funktionswerten von gaussian an x_values\n", + "y_values_12 = np.array([gaussian(x, 1, 2) for x in x_values]) # erzeugt eine neue Liste mit den Funktionswerten von gaussian an x_values" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "mode": "lines", + "name": "f(x), d = 1, a = 1", + "type": "scatter", + "x": [ + -5, + -4.898989898989899, + -4.797979797979798, + -4.696969696969697, + -4.595959595959596, + -4.494949494949495, + -4.393939393939394, + -4.292929292929293, + -4.191919191919192, + -4.090909090909091, + -3.9898989898989896, + -3.888888888888889, + -3.787878787878788, + -3.686868686868687, + -3.5858585858585856, + -3.484848484848485, + -3.383838383838384, + -3.282828282828283, + -3.1818181818181817, + -3.080808080808081, + -2.9797979797979797, + -2.878787878787879, + -2.7777777777777777, + -2.676767676767677, + -2.5757575757575757, + -2.474747474747475, + -2.3737373737373737, + -2.272727272727273, + -2.1717171717171717, + -2.070707070707071, + -1.9696969696969697, + -1.868686868686869, + -1.7676767676767677, + -1.6666666666666665, + -1.5656565656565657, + -1.4646464646464645, + -1.3636363636363638, + -1.2626262626262625, + -1.1616161616161618, + -1.0606060606060606, + -0.9595959595959593, + -0.858585858585859, + -0.7575757575757578, + -0.6565656565656566, + -0.5555555555555554, + -0.45454545454545503, + -0.3535353535353538, + -0.2525252525252526, + -0.15151515151515138, + -0.050505050505050164, + 0.050505050505050164, + 0.15151515151515138, + 0.2525252525252526, + 0.3535353535353538, + 0.45454545454545414, + 0.5555555555555554, + 0.6565656565656566, + 0.7575757575757578, + 0.8585858585858581, + 0.9595959595959593, + 1.0606060606060606, + 1.1616161616161618, + 1.262626262626262, + 1.3636363636363633, + 1.4646464646464645, + 1.5656565656565657, + 1.666666666666667, + 1.7676767676767673, + 1.8686868686868685, + 1.9696969696969697, + 2.070707070707071, + 2.1717171717171713, + 2.2727272727272725, + 2.3737373737373737, + 2.474747474747475, + 2.5757575757575752, + 2.6767676767676765, + 2.7777777777777777, + 2.878787878787879, + 2.9797979797979792, + 3.0808080808080813, + 3.1818181818181817, + 3.282828282828282, + 3.383838383838384, + 3.4848484848484844, + 3.5858585858585865, + 3.686868686868687, + 3.787878787878787, + 3.8888888888888893, + 3.9898989898989896, + 4.09090909090909, + 4.191919191919192, + 4.292929292929292, + 4.3939393939393945, + 4.494949494949495, + 4.595959595959595, + 4.696969696969697, + 4.797979797979798, + 4.8989898989899, + 5 + ], + "y": [ + 1.3887943864964021e-11, + 3.774749385421681e-11, + 1.0052545450701706e-10, + 2.623020708152929e-10, + 6.706024639252777e-10, + 1.6798338249450412e-9, + 4.12292325358088e-9, + 9.91475372322601e-9, + 2.3361265384873608e-8, + 5.393225095113822e-8, + 1.2199400294657463e-7, + 2.703747735744788e-7, + 5.871263979094033e-7, + 0.0000012492081164843242, + 0.0000026042084216736224, + 0.000005319299360963687, + 0.000010645617978079956, + 0.000020874932212515115, + 0.00004010670854936238, + 0.00007549996005574842, + 0.00013925608239859973, + 0.00025166300401903386, + 0.0004456175955920163, + 0.0007731131089877191, + 0.001314200097813233, + 0.002188858587883795, + 0.0035720017734637215, + 0.005711410539145406, + 0.008947729429304064, + 0.013734727867825864, + 0.020656894268089435, + 0.03044021712277765, + 0.043950944929302245, + 0.06217652402211635, + 0.08618315986580641, + 0.11704588209469746, + 0.15574984254978322, + 0.20306582750670657, + 0.25940827503658515, + 0.324689734472739, + 0.3981906351147616, + 0.4784662150377236, + 0.5633123390047614, + 0.6498079239471101, + 0.7344436719297314, + 0.8133355123498384, + 0.8825081578459232, + 0.9382217007464493, + 0.9773046622194881, + 0.9974524902978222, + 0.9974524902978222, + 0.9773046622194881, + 0.9382217007464493, + 0.8825081578459232, + 0.813335512349839, + 0.7344436719297314, + 0.6498079239471101, + 0.5633123390047614, + 0.4784662150377243, + 0.3981906351147616, + 0.324689734472739, + 0.25940827503658515, + 0.2030658275067068, + 0.15574984254978338, + 0.11704588209469746, + 0.08618315986580641, + 0.062176524022116264, + 0.0439509449293023, + 0.030440217122777693, + 0.020656894268089435, + 0.013734727867825864, + 0.00894772942930408, + 0.005711410539145422, + 0.0035720017734637215, + 0.002188858587883795, + 0.0013142000978132364, + 0.0007731131089877212, + 0.0004456175955920163, + 0.00025166300401903386, + 0.00013925608239859997, + 0.00007549996005574815, + 0.00004010670854936238, + 0.000020874932212515223, + 0.000010645617978079956, + 0.000005319299360963705, + 0.0000026042084216736037, + 0.0000012492081164843242, + 5.871263979094074e-7, + 2.7037477357447787e-7, + 1.2199400294657463e-7, + 5.393225095113861e-8, + 2.3361265384873608e-8, + 9.91475372322608e-9, + 4.122923253580836e-9, + 1.6798338249450412e-9, + 6.706024639252824e-10, + 2.623020708152929e-10, + 1.0052545450701706e-10, + 3.774749385421654e-11, + 1.3887943864964021e-11 + ] + }, + { + "mode": "lines", + "name": "f(x), d = 1, a = 2", + "type": "scatter", + "x": [ + -5, + -4.898989898989899, + -4.797979797979798, + -4.696969696969697, + -4.595959595959596, + -4.494949494949495, + -4.393939393939394, + -4.292929292929293, + -4.191919191919192, + -4.090909090909091, + -3.9898989898989896, + -3.888888888888889, + -3.787878787878788, + -3.686868686868687, + -3.5858585858585856, + -3.484848484848485, + -3.383838383838384, + -3.282828282828283, + -3.1818181818181817, + -3.080808080808081, + -2.9797979797979797, + -2.878787878787879, + -2.7777777777777777, + -2.676767676767677, + -2.5757575757575757, + -2.474747474747475, + -2.3737373737373737, + -2.272727272727273, + -2.1717171717171717, + -2.070707070707071, + -1.9696969696969697, + -1.868686868686869, + -1.7676767676767677, + -1.6666666666666665, + -1.5656565656565657, + -1.4646464646464645, + -1.3636363636363638, + -1.2626262626262625, + -1.1616161616161618, + -1.0606060606060606, + -0.9595959595959593, + -0.858585858585859, + -0.7575757575757578, + -0.6565656565656566, + -0.5555555555555554, + -0.45454545454545503, + -0.3535353535353538, + -0.2525252525252526, + -0.15151515151515138, + -0.050505050505050164, + 0.050505050505050164, + 0.15151515151515138, + 0.2525252525252526, + 0.3535353535353538, + 0.45454545454545414, + 0.5555555555555554, + 0.6565656565656566, + 0.7575757575757578, + 0.8585858585858581, + 0.9595959595959593, + 1.0606060606060606, + 1.1616161616161618, + 1.262626262626262, + 1.3636363636363633, + 1.4646464646464645, + 1.5656565656565657, + 1.666666666666667, + 1.7676767676767673, + 1.8686868686868685, + 1.9696969696969697, + 2.070707070707071, + 2.1717171717171713, + 2.2727272727272725, + 2.3737373737373737, + 2.474747474747475, + 2.5757575757575752, + 2.6767676767676765, + 2.7777777777777777, + 2.878787878787879, + 2.9797979797979792, + 3.0808080808080813, + 3.1818181818181817, + 3.282828282828282, + 3.383838383838384, + 3.4848484848484844, + 3.5858585858585865, + 3.686868686868687, + 3.787878787878787, + 3.8888888888888893, + 3.9898989898989896, + 4.09090909090909, + 4.191919191919192, + 4.292929292929292, + 4.3939393939393945, + 4.494949494949495, + 4.595959595959595, + 4.696969696969697, + 4.797979797979798, + 4.8989898989899, + 5 + ], + "y": [ + 1.9287498479639178e-22, + 1.4248732922741357e-21, + 1.0105367003842358e-20, + 6.880237635399095e-20, + 4.497076646226533e-19, + 2.821841679429488e-18, + 1.699849615491795e-17, + 9.830234139222402e-17, + 5.457487203824939e-16, + 2.9086876926565498e-15, + 1.488253675492886e-14, + 7.310251818545068e-14, + 3.447174071220709e-13, + 1.560520918290313e-12, + 6.781901503515819e-12, + 2.8294945691548685e-11, + 1.1332918213521915e-10, + 4.357627948771011e-10, + 1.6085480706634978e-9, + 5.700243968419607e-9, + 1.9392256485005598e-8, + 6.333426759188426e-8, + 1.9857504150120978e-7, + 5.977038792886569e-7, + 0.0000017271218970923108, + 0.000004791101917752642, + 0.000012759196669627972, + 0.00003262021034666123, + 0.00008006186194003403, + 0.0001886427496032324, + 0.00042670728080302614, + 0.0009266068184818457, + 0.0019316855601785587, + 0.003865920139472811, + 0.007427537044455144, + 0.01369973851532582, + 0.02425801345428226, + 0.0412357303009835, + 0.0672926531574566, + 0.10542342367197777, + 0.15855578189309721, + 0.22892991893252515, + 0.3173207912750152, + 0.42225033802445316, + 0.5394075072376269, + 0.6615146556493741, + 0.7788206486646049, + 0.8802599597515598, + 0.9551244027959476, + 0.9949114704013271, + 0.9949114704013271, + 0.9551244027959476, + 0.8802599597515598, + 0.7788206486646049, + 0.6615146556493751, + 0.5394075072376269, + 0.42225033802445316, + 0.3173207912750152, + 0.22892991893252582, + 0.15855578189309721, + 0.10542342367197777, + 0.0672926531574566, + 0.04123573030098359, + 0.02425801345428231, + 0.01369973851532582, + 0.007427537044455144, + 0.0038659201394728006, + 0.001931685560178564, + 0.0009266068184818481, + 0.00042670728080302614, + 0.0001886427496032324, + 0.00008006186194003431, + 0.0000326202103466614, + 0.000012759196669627972, + 0.000004791101917752642, + 0.00000172712189709232, + 5.9770387928866e-7, + 1.9857504150120978e-7, + 6.333426759188426e-8, + 1.9392256485005667e-8, + 5.700243968419567e-9, + 1.6085480706634978e-9, + 4.3576279487710577e-10, + 1.1332918213521915e-10, + 2.8294945691548885e-11, + 6.781901503515723e-12, + 1.560520918290313e-12, + 3.447174071220758e-13, + 7.310251818545017e-14, + 1.488253675492886e-14, + 2.908687692656591e-15, + 5.457487203824939e-16, + 9.830234139222541e-17, + 1.699849615491759e-17, + 2.821841679429488e-18, + 4.497076646226597e-19, + 6.880237635399095e-20, + 1.0105367003842358e-20, + 1.4248732922741153e-21, + 1.9287498479639178e-22 + ] + } + ], + "layout": { + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Gaußkurven f(x) = d exp(-a x<sup>2</sup>)" + }, + "xaxis": { + "title": { + "text": "x" + } + }, + "yaxis": { + "title": { + "text": "y" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "fig = go.Figure() # erzeugt einen leeren Graphen\n", + "\n", + "fig.update_layout(title=\"Gaußkurven f(x) = d exp(-a x<sup>2</sup>)\", xaxis_title=\"x\", yaxis_title=\"y\") # passt die Titel an\n", + "fig.add_trace(go.Scatter(x=x_values, y=y_values_11, mode='lines', name=\"f(x), d = 1, a = 1\")) # fügt dem Graphen eine Linie hinzu\n", + "fig.add_trace(go.Scatter(x=x_values, y=y_values_12, mode='lines', name=\"f(x), d = 1, a = 2\")) # eine weitere Linie\n", + "\n", + "fig.show() # zeigt den Graphen im Notebook" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Externe Programme und ORCA\n", + "Wir können von einem Jupyter-Notebook aus auf andere Software zugreifen, die auf dem System installiert ist. Einerseits können wir Zellen mit der _cell magic_ `%%bash` versehen. Das sorgt dafür, dass der Zelleninhalt als Bash-Skript ausgeführt wird, also mit den gleichen Befehlen, die auch im Terminal verwendet werden." + ] + }, + { + "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.10.10" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/01-intro/h2.inp b/01-intro/h2.inp new file mode 100644 index 0000000..361eeb4 --- /dev/null +++ b/01-intro/h2.inp @@ -0,0 +1,6 @@ +! RHF STO-3G + +* xyz 0 1 +H 0 0 0 +H 0.7 0 0 +* \ No newline at end of file -- GitLab