#include <math.h> #include <iostream> #include <iomanip> void gauss_Legendre_algorithm() { std::cout << "Start.." << std::endl; //初期値 double a0 = 1.0; double b0 = 1.0 / sqrt(2.0); double t0 = 1.0 / 4.0; double p0 = 1.0; //1回目 double a1 = (a0 + b0) / 2.0; double b1 = sqrt(a0 * b0); double t1 = t0 - p0 * pow((a0 - a1), 2.0); double p1 = 2 * p0; //PI計算 double pi = 0.0; pi = pow((a1 + b1), 2.0) / (4.0
The BBP (named after Bailey-Borwein-Plouffe) is a formula for calculating pi discovered by Simon Plouffe in 1995, Amazingly, this formula is a digit-extraction algorithm for in base 16. Following the discovery of this and related formulas, similar formulas in other bases were investigated. This class of formulas are now known as BBP-type formulas. ReferencesAdamchik, V. and Wagon, S. "A Simple For
円周率を計算する公式として知られている、ラマヌジャンの公式とチュドノフスキー兄弟の公式を比較します。 どちらも極めて早く収束する公式としてしられています。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く