#!/usr/koeki/bin/ruby include Math n = 10 ** 5 for i in 1..n printf("n=%-40d e=%f\n", i, (1+1/i.to_f)**i) end printf("Ruby に入っている e=#{E}\n")