Skip to content

davidbauch/fun-stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection of small, interesting and fun projects

Inspired by this Youtube video by 'The Coding Train', I recreated an animated version of a simple 1D Cellular Automata. The Cellular Automata is fully characterized by a single integer number < 255, which is converted into its binary representation. This binary representation forms the ruleset of the automata.

Here is the Wikipedia article on elementary cellular automata.

A 1D row of 0's or 1's is evolved through iterations of the ruleset.

The resulting new row is stacked onto the previous rows, resulting in images like this:

1 2 3 4

Inspired by a X(Twitter) post, I recreated an animated version of an attractor-like equation, presented simply as "Orbits". The orbits are soley defined by the equations

x_next = sin(x**2 - y**2 + c1)
y_next = cos(2*x*y + c2)

The equations can, theoretically, be exchanged with any (periodic) trigonometric function, such as the tan.

Evaluating the equations and varying c2 results in the these videos: sin in the first equation

sin

tan instead of sin in the first equation

tan

Evaluating the equations results in images like this: sin in the first equation

1

1

tan instead of sin in the first equation

1

2

Short Jupyter Notebook to visualize the Eigenvalues of special square matrices

Short Summary and Example Takes a complex `N x N` matrix with two randomly chosen variable elements.

Calculates the Eigenvalues of this matrix varying the two variable elements.

Plots the resulting Eigenvalues.

example

Visualization for simple sorting algorithms. The rules for implementation are simple: No loops, no in-build function like slicing or copying of lists. Every read or write has to be done interatively. This maximizes viewing pleasure :)

Future plans: Visualize more advanced sorting algorithms like heapsort, bucket sort and so on.

Example Video

sortingalgos

About

Some Small and Fun Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors