log test

(function(){
    var x = 14569;
    var y = 36578;
    alert(x*y);
    var p = Math.log(x);
    var q = Math.log(y);
    alert(Math.pow(Math.E, p+q));
})();
(function(){
    var x = 14569;
    var y = 36578;
    var base = 10;
    alert(x*y);
    var p = Math.log(x) / Math.log(base);
    var q = Math.log(y) / Math.log(base);
    alert(Math.pow(base, p+q));
})();

http://d.hatena.ne.jp/ku0522/20080718/1216353122
http://ja.wikipedia.org/wiki/対数

changed July 18, 2008