mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#randomwalk

0 Beiträge0 Beteiligte0 Beiträge heute

Hexagonaler Random Walk mit TigerJython

Der bei Microsoft forschende Psychologe und Informatiker Dan Goldstein berichtet in seinem Blog, wie er mit seiner neunjährigen Tochter in einem Bagel-Shop warten mußte. Um sich die Langeweile zu verkürzen, kramte er ein hexagonal-kariertes Blatt Papier und einen Würfel hervor (Psychologen bei Microsoft haben immer ein hexagonal-karierten Notizblock und einen Würfel in der Tasche). kantel.github.io/posts/2025061 #TigerJython #RandomWalk #Python #CreativeCoding

#genuary17 - Pi is 4? When contemplating how to approach this one, I recalled the fascinating Monte Carlo methods for calculating pi, like counting how many random dots fall inside a circle, or Buffon's needle experiment. A method unfamiliar to me until now method is based on random walk. I had to code it up and try it, and then thought about what would have to change to make pi come out to be 4. Instead of a random walk where each step is randomly either -1 or 1, the steps would need to be approximately -0.885 or +0.885. This image visualizes the difference, with the cream color walks for the regular pi, and the turquoise paths the "pi=4". #pi #randomwalk #genuary #genuary2025

Hexagonaler Random Walker (mit der Turtle und in Trinket)

Da ich mit meinen Spiralen Blut geleckt hatte, wollte ich unbedingt zu Beginn des Jahres noch etwas mit Pythons Turtle anstellen. Also habe ich den hexagonalen Random Walk, den ich im Dezember 2017 schon einmal hier in diesem Blog Kritzelheft vorgestellt hatte, wieder aus der Mottenkiste hervorgekramt und ein wenig aufgehübscht. kantel.github.io/posts/2024010 #Python #Turtle #CreativeCoding #RandomWalk #Trinket