From 66108d32bc4fbe7f19eb8cb45c51a337a0b3a4aa Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sun, 21 May 2023 20:25:16 +0200 Subject: [PATCH] Removed date, so it won't be shown on the index.html --- ...rogramming.org => functional_programming.org} | 0 src/feeds/coding/index.org | 3 +-- src/feeds/coding/nested_intervals.org | 15 +++++++++------ src/feeds/food/index.org | 1 - src/feeds/handhelds/index.org | 2 -- src/feeds/index.org | 1 - src/feeds/projects/index.org | 1 - src/index.org | 16 ++++++++-------- 8 files changed, 18 insertions(+), 21 deletions(-) rename src/feeds/coding/{functional-programming.org => functional_programming.org} (100%) diff --git a/src/feeds/coding/functional-programming.org b/src/feeds/coding/functional_programming.org similarity index 100% rename from src/feeds/coding/functional-programming.org rename to src/feeds/coding/functional_programming.org diff --git a/src/feeds/coding/index.org b/src/feeds/coding/index.org index 797f680..c516bbf 100644 --- a/src/feeds/coding/index.org +++ b/src/feeds/coding/index.org @@ -2,7 +2,6 @@ #+DESCRIPTION: Are you up for a coding challenge? You can find some of my weird side projects here #+SETUPFILE: ../../config.org #+OPTIONS: toc:nil num:nil -#+DATE:<2023-01-29 Sun 16:20> There is nothing I can say to explain this, sometimes I just feel like writing some lines of code. @@ -22,5 +21,5 @@ or that just went nowhere. #+end_src #+RESULTS: -- [[file:./../../feeds/coding/functional-programming.org][Let's check out functional programming]] +- [[file:./../../feeds/coding/functional_programming.org][Let's check out functional programming]] - [[file:./../../feeds/coding/nested_intervals.org][Let's check out nested intervals]] diff --git a/src/feeds/coding/nested_intervals.org b/src/feeds/coding/nested_intervals.org index 102aba7..f779b98 100644 --- a/src/feeds/coding/nested_intervals.org +++ b/src/feeds/coding/nested_intervals.org @@ -45,7 +45,8 @@ cosine is a monotonically non-increasing function. (setq offset (+ offset step-width)) ) - e) + e +) #+end_src Notice that I chose a ~step-width~ of ~0.2~, @@ -95,7 +96,9 @@ and we can use it to calculate the value of \(\pi\). (setq val (cos mid)) (cond ((> val 0) (list mid mid end)) - (t (list mid start mid)))) + (t (list mid start mid)) + ) + ) #+end_src @@ -152,24 +155,24 @@ so I know that we have to run it /28/ times for the first 8 decimal places to be Before we finish todays article, let's talk about speed: As you can see from my example above, -it took me /28/ cycles to achive an accuracy of eight decimal places. +it took me /28/ cycles to achieve an accuracy of eight decimal places. This might seem like a lot at first, but the other option would have been to iterate through every single x value, and there are an infinite amount of them \([0,{\pi \over 2}] \in \mathbb R\). For example if we had chosen a step-width of ~0.00000001~, -which would have been neccesarry to calculate the first eight decimal places, +which would have been necessary to calculate the first eight decimal places, this would have taken us about 157 million iterations. The reason why works so much better is that we essentially make the interval half as small in every iteration, -resulting in logarithmical cost development. +resulting in logarithmic cost development. ** Conclusion Nested intervals are an easy way to quickly approximate numbers, without complex calculations. -For example, wikipedia alsa has an example of approximating \(\sqrt{19}\). +For example, Wikipedia also has an example of approximating \(\sqrt{19}\). However you should keep in mind, that you are approximating the value and thus results may vary. diff --git a/src/feeds/food/index.org b/src/feeds/food/index.org index 35b4641..5cc8118 100644 --- a/src/feeds/food/index.org +++ b/src/feeds/food/index.org @@ -2,7 +2,6 @@ #+DESCRIPTION: Mhhhh. Tasty. #+SETUPFILE: ../../config.org #+OPTIONS: toc:nil num:nil -#+DATE:<2023-01-29 Sun 16:20> Besides programming, I enjoy cooking and baking. diff --git a/src/feeds/handhelds/index.org b/src/feeds/handhelds/index.org index 02a2751..cfe98f9 100644 --- a/src/feeds/handhelds/index.org +++ b/src/feeds/handhelds/index.org @@ -2,8 +2,6 @@ #+DESCRIPTION: Mostly me aranting about mobile phones #+SETUPFILE: ../../config.org #+OPTIONS: toc:nil num:nil -#+DATE:<2022-06-17 Fri 20:10> - I guess either you love it or hate it - right? the mobileOS =war=. diff --git a/src/feeds/index.org b/src/feeds/index.org index 711720c..377dc25 100644 --- a/src/feeds/index.org +++ b/src/feeds/index.org @@ -2,7 +2,6 @@ #+DESCRIPTION: Index page with all of my blog entries listed by category #+SETUPFILE: ../config.org #+OPTIONS: toc:nil num:nil -#+DATE:<2022-06-17 Fri 13:30> Whoooaa you have found my blog-post index. diff --git a/src/feeds/projects/index.org b/src/feeds/projects/index.org index d4d82cf..258a652 100644 --- a/src/feeds/projects/index.org +++ b/src/feeds/projects/index.org @@ -2,7 +2,6 @@ #+DESCRIPTION: A list of my featured personal projects #+SETUPFILE: ../../config.org #+OPTIONS: toc:nil num:nil -#+DATE:<2022-06-17 Fri 13:30> I enjoy building new software in rust or writing weird javascript libraries. diff --git a/src/index.org b/src/index.org index 6f9ce14..b9c39fb 100644 --- a/src/index.org +++ b/src/index.org @@ -1,9 +1,8 @@ #+TITLE: ccw.icu -#+DESCRIPTION: My personal webpage & blog +#+DESCRIPTION: My personal web page & blog #+SETUPFILE: ./config.org #+EXPORT_FILE_NAME: build/index #+OPTIONS: toc:nil num:nil -#+DATE:<2022-06-17 Fri 13:30> * About me Hi, @@ -20,7 +19,7 @@ I'm currently studying =Computer science= at the =Otto von Guericke Universität=. If I get around to it, -I'll also put some of my favourite project on my [[file:feeds/projects/index.org][projects page]]. +I'll also put some of my favorite project on my [[file:feeds/projects/index.org][projects page]]. But you're probably better of just checking out my [[https://codeberg.org/comcloudway][codeberg account]]. Oh yeah I nearly forgot: @@ -36,7 +35,7 @@ I removed the /All posts/ list. If you are looking for something specific, just check the appropriate category. And if you are just here to spend some time reading, -pick a category that seems interestign to you +pick a category that seems interesting to you #+begin_src elisp :exports results :results value list @@ -45,10 +44,11 @@ pick a category that seems interestign to you #+end_src #+RESULTS: -- [[file:../src/feeds/coding/index.org][Coding]] -- [[file:../src/feeds/handhelds/index.org][Smartphone related posts]] -- [[file:../src/feeds/projects/index.org][Projects]] -- [[file:../src/feeds/queertopia/index.org][Welcome to Queertopia]] +- [[file:./feeds/coding/index.org][Coding]] +- [[file:./feeds/food/index.org][Food]] +- [[file:./feeds/handhelds/index.org][Smartphone related posts]] +- [[file:./feeds/projects/index.org][Projects]] +- [[file:./feeds/queertopia/index.org][Welcome to Queertopia]] * Social I occasionally post over on [[https://fosstodon.org/@comcloudway][Mastodon]], -- 2.38.5