1キーを押して計算開始 (全てn→∞) 1つ目の数式 π = 4 - 4/3 + 4/5 - 4/7 + … + 4(-1)ⁿ/2n-1 ライプニッツの公式 2つ目の数式 π = √0.5 - 0.5cos(360/n)° × n 円に内接する正n角形の周の長さ 3つ目の数式 π = tan(180/n)° × n 円に外接する正n角形の周の長さ 2つ目の式が一番早く円周率に近づきます。が、計算を続けると何故か崩れ始めます。 1つ目の方は続ければ続けるほど正確になっていきます。 (一晩つけっぱなしにしたらかなりいい線行くかも?) 3つ目は1つ目よりも早く、かつ2つ目よりも正確に円周率を求められます。(ていうかこれが多分最強) 円周率(記憶の限り) π=3.14159265358979323846264… スペースで計算中断 rキーでリセット たぶん使い道はありません --------------------------------- (Please note that I'm not a native English speaker.) Press 1 key to start calculation. π is calculated by the three ways follow: 1: π = 4- 4/3 + 4/5 - 4/7 + … + 4(-1)ⁿ/2n-1 It is based on the Leibniz formula for π. 2: π = √0.5 - 0.5cos(360/n)° × n It is based on the sum of the edge lengths of a regular polygon inscribed inside a circle. (The value is relatively incorrect because Scratch isn't good at calculating cosine.) 3: π = tan(180/n)° × n It is based on the sum of the edge lengths of a regular polygon circumscribed outside a circle.