JavaScript 数値演算 新しいページはコチラ
提供: yonewiki
(→対数・指数函数 log/exp) |
(→対数・指数函数 log/exp) |
||
766行: | 766行: | ||
ctx.stroke(); | ctx.stroke(); | ||
} | } | ||
− | for(var i = | + | for(var i = -200;i < 200;i += 0.01){ |
ctx.beginPath(); | ctx.beginPath(); | ||
ctx.moveTo(200 + (i * 20), 200 - (Math.exp(i-0.01) * 20)); | ctx.moveTo(200 + (i * 20), 200 - (Math.exp(i-0.01) * 20)); |