Math
Kuramoto synchronisation
Watch forty coupled phase oscillators synchronize. Adjust coupling and natural-frequency spread while following individual phases and the complex order parameter.

Try this
Increase coupling to overcome the spread of natural frequencies. The red arrow is the complex phase average; its length R measures coherence.
Equations used in the module
Equations θi′ = ωi + (K/N) Σj sin(θj−θi) R exp(iψ) = (1/N) Σj exp(iθj) 0 ≤ R ≤ 1; identical phases give R = 1


