From 55562889eb90fbb1589b291a39fc0b26ab008252 Mon Sep 17 00:00:00 2001 From: raj_mathe Date: Thu, 20 Oct 2022 22:04:15 +0200 Subject: [PATCH] master > master: notebook woche 2 --- notebooks/week-2.ipynb | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/notebooks/week-2.ipynb b/notebooks/week-2.ipynb index 2309790..fec7ba6 100644 --- a/notebooks/week-2.ipynb +++ b/notebooks/week-2.ipynb @@ -6,7 +6,14 @@ "source": [ "# Woche 2 - 17.-23. Oktober 2022 #\n", "\n", - "Herzlich willkommen zur 2. Woche!" + "Herzlich willkommen zur 2. Woche!\n", + "\n", + "## Agenda ##\n", + "\n", + "- [x] Struktur\n", + "- [x] Aufwärme\n", + "- [x] Seminaraufgaben 2.x\n", + "- [ ] Besprechung von HA 1.x\n" ] }, { @@ -46,11 +53,11 @@ "X = ['a', 'b', 'c', 'd', 'e'];\n", "Y = [2, 3, 5, 7, 11, 13, 17];\n", "Z = ['α', 'β', 'γ', 'δ'];\n", - "f = [('a', 5), ('b', 5), ('c', 17), ('d', 2)]\n", + "f = [('a', 5), ('b', 5), ('c', 17), ('d', 2), ('e', 5)]\n", "g = [(2, 'γ'), (3, 'α'), (5, 'β'), (7, 'δ'), (11, 'β'), (13, 'γ'), (17, 'β')];\n", "comp = Functions(\n", - " Function(name=('$f$', 'X', 'Y'), domain=X, codomain=Y, fct=f),\n", - " Function(name=('$g$', 'Y', 'Z'), domain=Y, codomain=Z, fct=g),\n", + " Function(name=('f', 'X', 'Y'), domain=X, codomain=Y, fct=f),\n", + " Function(name=('g', 'Y', 'Z'), domain=Y, codomain=Z, fct=g),\n", ");\n", "comp.draw(show_labels=True);" ] @@ -63,14 +70,14 @@ "source": [ "A = np.random.randint(-100, 100, size=(4, 7));\n", "\n", - "X = randomset_alphabet(low=2, high=5);\n", - "Y = randomset_integers(low=2, high=5);\n", - "Z = randomset_greek(low=2, high=5);\n", - "f = random_function(X, Y);\n", - "g = random_function(Y, Z);\n", + "X = randomset_alphabet(N=3);\n", + "Y = randomset_integers(N=5);\n", + "Z = randomset_greek(N=7);\n", + "f = random_function(X, Y, injective=True);\n", + "g = random_function(Y, Z, injective=True);\n", "comp = Functions(\n", - " Function(name=('$f$', 'X', 'Y'), domain=X, codomain=Y, fct=f),\n", - " Function(name=('$g$', 'Y', 'Z'), domain=Y, codomain=Z, fct=g),\n", + " Function(name=('f', 'X', 'Y'), domain=X, codomain=Y, fct=f),\n", + " Function(name=('g', 'Y', 'Z'), domain=Y, codomain=Z, fct=g),\n", ");\n", "comp.draw(show_labels=False);" ]