エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
CoffeeScriptで平方根Newton法 #js - c4se記:さっちゃんですよ☆
Lispの本読んでる筈なんだけどなー。練習。 sqrt = (x) -> prev = x next = x / 2 while prev isnt next... Lispの本読んでる筈なんだけどなー。練習。 sqrt = (x) -> prev = x next = x / 2 while prev isnt next prev = next next = predictive_next_sqrt x, prev next predictive_next_sqrt = (x, value) -> (value + x / value) / 2 module.exports.sqrt = sqrt coffee -cで生成されたJavaScript。 (function() { var predictive_next_sqrt, sqrt; sqrt = function(x) { var next, prev; prev = x; next = x / 2; while (prev !== next) { prev = next; next = p
2011/11/08 リンク