js-mathing


Source code

This is intended to be a collection of mathematics related demo and visualization written in javascript. Each item has two files: html and js. No external css or js library. The js file only includes necessary functions for the particular item.

Algebra

  1. Happy number
  2. Squared digit sum

Geometry

  1. Moving sofa
  2. Napoleon's theorem

Codes, ciphers, and secret writing

by Martin Gardner

  1. Rail fence cipher
  2. Twisted path cipher
  3. Scrambling with keyword
  4. Shift cipher
  5. Date shift cipher