Interactive Main and Variance
This article tries to explain multiple concepts from statistics using a small Javascript illustration of the correlation of two variables.
This article tries to explain multiple concepts from statistics using a small Javascript illustration of the correlation of two variables.
A Web Worker makes it possible to run Javascript code without blocking the user interface. That is, computations can be made in the background without locking the user interface.
All the scenes are version controlled on my GitHub page. You may do whatever with it - but I would like to hear about it - in the unlikely case that anyone do anything like that.
During my Ph.D. I made a java applet demonstrating an inverse problem. This article brings the applet back. You will need a very old browser setup in order for it to work.
How far can you see when you are, say, 2 meters high? Lets find out assuming that we stand on a perfect circle with perfect visibility (and that we do not have refraction).
To create the rotations I make a “detour” by converting the number into a string and then performing the rotations on the string.
A solution to Euler 48
What is the average distance between two points on a circle?
We define the distance as going through the circle as going around the circle reduces the problem to the problem of average distance on a line, see Average Distance on a Line.
Problems 18 and 67 differs in their size, where problem 67 is so large that a (naive) brute force algorithm would not end within reasonable time. A simple algorithm shows it self if we goes from the bottom up. The problem formulation displays the numbers such that one looks at the numbers from the top going down.
F# has a lot of functionality for manipulation of lists. Here is my first attempt at the solution in F#.