Edit a program and see the result as you type. Execution stays in your browser.
Compare squared distances to two candidate centers in one pass per center.
Download this Blyx example