Pi calculation formulas in js.