From 182cca811dc1750327072fa97d4a4d3348e64101 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 22 Jun 2020 17:10:00 +0200 Subject: VERY funny code :) --- css/style.css | 1 - index.html | 68 ++++++++++++++++++++++++++++++++++++++++------------------- js/main.js | 17 +++++++++++++++ 3 files changed, 63 insertions(+), 23 deletions(-) diff --git a/css/style.css b/css/style.css index ab3acdc..58e35d3 100644 --- a/css/style.css +++ b/css/style.css @@ -10,4 +10,3 @@ .flexContainer { display: flex; } - diff --git a/index.html b/index.html index b618856..ffae4bb 100644 --- a/index.html +++ b/index.html @@ -68,23 +68,46 @@
-

Umfang des Koch Fraktals

-
-

Anzahl der Linien:

-

\[ N_n = N_{n-1} \cdot 4 = 4^n \]

-
-
-

Länge der Linien:

-

\[ S_n = \frac{S_{n-1}}{3} = \frac{s}{3^n} \]

-
-
-

Umfang:

-

\[ P_n = N_n\cdot S_n = s\cdot\left(\frac{4}{3}\right)^n \]

-
-
-

Limes:

-

\[ \lim_{n\to\infty}P_n = \infty \]

-
+
+

Umfang des Koch Fraktals

+
+

Anzahl der Linien:

+

\[ N_n = N_{n-1} \cdot 4 = 4^n \]

+
+
+

Länge der Linien:

+

\[ S_n = \frac{S_{n-1}}{3} = \frac{s}{3^n} \]

+
+
+

Umfang:

+

\[ P_n = N_n\cdot S_n = s\cdot\left(\frac{4}{3}\right)^n \]

+
+
+

Grenzwert:

+

\[ \lim_{n\to\infty}P_n = \infty \]

+
+ +
+
+

Nebenrechnung

+

\[ N_n = N_{n-1} \cdot 4 = 4^n \]

+

\[ S_n = \frac{S_{n-1}}{3} = \frac{s}{3^n} \]

+

+ \[ P_n = N_n\cdot S_n = 4^n \cdot \frac{s}{3^n} = \frac{s \cdot 4^n}{3^n} = s \cdot + \frac{4^n}{3^n} \] +

+ +
+
+ +
+

Summenzeichen

+

\[ \sum_{x=1}^{5} x^2 \]

+

\[ = 1^2 + 2^2 + 3^2 + 4^2 + 5^2 = 55 \]

+
+ +
+

Fläche des Koch Fraktals

@@ -97,11 +120,6 @@ />
-
-

Summenzeichen

-

\[ \sum_{n=-\infty}^{+\infty} f(x) \]

-
-

Fläche des Koch Fraktals

@@ -116,6 +134,12 @@ https://en.wikipedia.org/wiki/Koch_snowflake + + http://www.mathematik.uni-ulm.de/stochastik/lehre/ws06_07/seminar_fraktale/daikeler.pdf + diff --git a/js/main.js b/js/main.js index 0539d9f..3a7a7c4 100644 --- a/js/main.js +++ b/js/main.js @@ -124,3 +124,20 @@ function koch(start, end, iteration) { koch([x2, y2], [end[0], end[1]], iteration - 1); } } + +// Some revealjs thingies +// This some real hacky shit yo +Reveal.addEventListener("fragmentshown", (event) => { + switch (event.fragment.getAttribute("data-action")) { + case "nebenrechnung": + Reveal.slide(4, 1, 0); + break; + case "umfang-back": + Reveal.slide(4, 0, 2); + break; + case "gooo": + Reveal.slide(5, 0, 0); + break; + default: + } +}); -- cgit v1.2.3