Phi

just compute phi

Watch Star Follow @CS1000

Phi "The Golden Ratio" - φ

ready...

$ Ctrl + C
        

Q & A

  • What is this?
  • Read here: wikipedia.org/wiki/Golden_ratio

  • Why did you make this?
  • As an homage for π day 3.14'15 (Phi's close cousin)

  • How does this work?
  • The Fibonacci Sequence is computed over and over, at each cycle the last two values in the sequence are divided and result in a closer approximation of the Golden Ratio.

  • But this seems inefficient, aren't there better ways?
  • Probably, but give your CPU a burn-in test just in case.

  • Why is there a 5ms delay in the code?
  • Breath of fresh air. It won't matter in a few short cycles anyway, unless you're on a supercomputer, well... are you?

  • My machine spit a whole page of digits in under 1 min!
  • No shit!

  • Easter Eggs
  • yes



    Support or Contact

    Issue

    Licensed into the Public Domain

    ♥ goes to @peterolson for BigInteger.JS (also public domain)