Random Python code about mathematical things
Implementation of the Ackermann function: ATTENTION: Recursive Recursive-ness; runtime gets infinite VERY quickly (just as the ackermann function is one of the fastest-rising functions known)
Test-Script about the Mandelbrot Set
like mandel_test.py but with a better graphical representation
checks if a number is a palindrome; that is; a number that starts and ends with the same digits
generates prime numbers from 1 to N
Pseudo-Monte Carlo Simulation where a player bets on either red and blue at roulette and doubles his bet each time he loses. Averages the winnings with this strategy over many games. (Spoiler: On average, you get your initial bet back, just as combinatorics predicts...)