Statistical Analysis Tool for Problem 8
Created in the course of solving problem 8 of the PROMYS India 2024 application set. More details here
I'm too lazy to create a UI - you must use your browser's console.
Press Ctrl + Shift + J (Windows/Linux) or Cmd + Option + J (Mac) to open the console.
Interface (or the lack thereof)
Type the function calls directly into the console and press enter to execute them.
-
Draw a tile of size n: drawLattice(n)
Might take several seconds if n is greater than 100.
The number printed over each point is the number distinct traces in which the point is present.
-
Display the kth trace of point(x, y): showTrace(x, y, k)
-
To only display points which appear in more than one trace, set showWanderingOnly to true (showWanderingOnly = true).
-
To display points which appear in one trace only (co-prime points), set coPrimePointsOnly to true.
-
drawLattice must be called again for changes to boolean parameters to take effect.
For example, to create a 10x10 tile and display the third trace of (6, 2), execute drawLattice(10) followed by showTrace(6, 2, 3)