2010-05-27 任意の対数の底で計算する # 任意の対数の底で計算する def log_n(x,n) # n:底 return (Math::log(x))/(Math::log(n.to_f)) end