2006-10-11から1日間の記事一覧

Harry Potter and the Chamber of Secrets (UK)(91,000語)

Harry Potter and the Chamber of Secrets (UK) (Paper) (2)作者: J. K. Rowling出版社/メーカー: Bloomsbury Publishing PLC発売日: 1999/01/02メディア: ペーパーバック購入: 3人 クリック: 22回この商品を含むブログ (21件) を見る今年のゴールデンウィー…

Harry Potter and the Prisoner of Azkaban (UK)(116,000語)

Harry Potter and the Prisoner of Azkaban (UK) (Paper) (3)作者: J. K. Rowling出版社/メーカー: Bloomsbury Publishing PLC発売日: 2000/02/26メディア: ペーパーバック購入: 1人 クリック: 28回この商品を含むブログ (21件) を見るようやっと読了。通勤…

18:00ごろ帰りました。

Gauss-Legendreの2次の収束公式でπを計算してみました

算術幾何平均による円周率πの計算公式を参考にπを計算してみました。多倍長演算をごにょごにょするのが大変そうだったので、とりあえずDoubleの範囲で。 module Main (main) where import Text.Printf (printf) calcPi :: Int -> Double calcPi n = calc n 1…