PI example in your browser - Dr Owain Kenway

Friday, Feb 03

Some of you may be aware that my colleague Dr Kirker and I maintain a repository of implementations of a particular way of calculating PI in whichever language we are playing with at that moment in time here.

These include a wide variety of languages, for example I’ve been learning Forth:

Forth implementation of Pi example

Most recently, I’ve done a quick implementation in JavaScript which you can play about with in your browser’s JavaScript console.

Pi JS in Firefox

Pi JS in Chromium