Measuring PI, by way of PHI
- Is compatible with Javascript's built-in Math library
- Runs on any Javascript engine
- Is easily extensible
- Open Source
Pi-Gold is a Javascript library featuring the value for a precise measurment of pi,(3.1446055..), or Pi by way of Phi, - the golden ratio. The Measuring Pi Squaring Phi website shows a real, physical measurment of a circle and other geometric proofs.
Library includes:
pii - circumf of circle/diam of circle |
phi - the golden ratio - 1.618033.. |
pii2 - diam of squared circle/side of squared square area of squared circle/area of squared square |
pii3 - diam of squared circle/diagonal of squared square |
pii4 - surface of squared circle/surface of squared square |
pii5 - volume of squared circle/volume of squared square |
Pi-Gold.js can be used in both node.js and in the browser.
Install pi-gold.js using npm:
npm install pi-gold
Then link to it in your Javascript file:
// script.js
import { pii } from "pi-gold.js";
document.getElementById("demo").innerHTML = pii;
Or you can link to it without downloading anything:
Pi-Gold Calculator A scientific calculator with the 'pi' key set to the 'Pi-Gold' value. Check it out here!