The Golden Ratio by tabasa

class Bignum\x0d
  def f b\x0d
    b+b*b/self\x0d
  end\x0d
  def p\x0d
    puts"1."+self.to_s[1..-1]\x0d
  end\x0d
end\x0d
\x0d
b=10**499\x0d
g=2*b\x0d
1194.times{g=g.f(b)}\x0d
g.p

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page