master > master: notebook woche 2
This commit is contained in:
parent
96684d30a8
commit
55562889eb
@ -6,7 +6,14 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# Woche 2 - 17.-23. Oktober 2022 #\n",
|
"# Woche 2 - 17.-23. Oktober 2022 #\n",
|
||||||
"\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",
|
"X = ['a', 'b', 'c', 'd', 'e'];\n",
|
||||||
"Y = [2, 3, 5, 7, 11, 13, 17];\n",
|
"Y = [2, 3, 5, 7, 11, 13, 17];\n",
|
||||||
"Z = ['α', 'β', 'γ', 'δ'];\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",
|
"g = [(2, 'γ'), (3, 'α'), (5, 'β'), (7, 'δ'), (11, 'β'), (13, 'γ'), (17, 'β')];\n",
|
||||||
"comp = Functions(\n",
|
"comp = Functions(\n",
|
||||||
" Function(name=('$f$', 'X', 'Y'), domain=X, codomain=Y, fct=f),\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=('g', 'Y', 'Z'), domain=Y, codomain=Z, fct=g),\n",
|
||||||
");\n",
|
");\n",
|
||||||
"comp.draw(show_labels=True);"
|
"comp.draw(show_labels=True);"
|
||||||
]
|
]
|
||||||
@ -63,14 +70,14 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"A = np.random.randint(-100, 100, size=(4, 7));\n",
|
"A = np.random.randint(-100, 100, size=(4, 7));\n",
|
||||||
"\n",
|
"\n",
|
||||||
"X = randomset_alphabet(low=2, high=5);\n",
|
"X = randomset_alphabet(N=3);\n",
|
||||||
"Y = randomset_integers(low=2, high=5);\n",
|
"Y = randomset_integers(N=5);\n",
|
||||||
"Z = randomset_greek(low=2, high=5);\n",
|
"Z = randomset_greek(N=7);\n",
|
||||||
"f = random_function(X, Y);\n",
|
"f = random_function(X, Y, injective=True);\n",
|
||||||
"g = random_function(Y, Z);\n",
|
"g = random_function(Y, Z, injective=True);\n",
|
||||||
"comp = Functions(\n",
|
"comp = Functions(\n",
|
||||||
" Function(name=('$f$', 'X', 'Y'), domain=X, codomain=Y, fct=f),\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=('g', 'Y', 'Z'), domain=Y, codomain=Z, fct=g),\n",
|
||||||
");\n",
|
");\n",
|
||||||
"comp.draw(show_labels=False);"
|
"comp.draw(show_labels=False);"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user