Calculate the expected number of random moves along the edges of a dodecahedron to get to the opposite vertex.
- Open https://andrazznidar.github.io/Random-walk-edges-dodecahedron/JavaScript/
- Click
Start!
and wait. - Observe the result 35.
- Install Julia high-level programming language.
- Download the file
Random-walk-edges-dodecahedron.jl
from theJulia
folder in this repository. - Run
julia Random-walk-edges-dodecahedron.jl
from the command line. - Observe the result 35.
- Install Python High-level programming language.
- Download the file
Random-walk-edges-dodecahedron.py
from thePython
folder in this repository. - Run
python3 Random-walk-edges-dodecahedron.py
from the command line. - Observe the result 35.
- Install Wolfram Mathematica computer program.
- Download the file
Random-walk-edges-dodecahedron.wls
from theWolframLanguageScript
folder in this repository. - Open the file
Random-walk-edges-dodecahedron.wls
with Wolfram Mathematica and run the script. - Observe the result 35.
The vertices are numbered from top to bottom, from left to right, in this orthogonal projection of a dodecahedron:
By Parcly Taxel - Own work, Public Domain, https://commons.wikimedia.org/w/index.php?curid=69418360