From 0494cba58164af60fff23724bd40fee85c10b9da Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 18 Sep 2002 17:10:52 +0000 Subject: [PATCH] * Fix citation. --- doc/tutorial/ginac.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index 2c3583de..54a37343 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -3898,14 +3898,14 @@ Only calling the series method makes the last output simplify to @math{1-v^2/c^2+O(v^10)}, without that call we would just have a long series raised to the power @math{-2}. -@cindex M@'echain's formula +@cindex Machin's formula As another instructive application, let us calculate the numerical value of Archimedes' constant @tex $\pi$ @end tex (for which there already exists the built-in constant @code{Pi}) -using M@'echain's amazing formula +using Machin's amazing formula @tex $\pi=16$~atan~$\!\left(1 \over 5 \right)-4$~atan~$\!\left(1 \over 239 \right)$. @end tex @@ -3923,7 +3923,7 @@ the order term off: #include using namespace GiNaC; -ex mechain_pi(int degr) +ex machin_pi(int degr) @{ symbol x; ex pi_expansion = series_to_poly(atan(x).series(x,degr)); @@ -3938,7 +3938,7 @@ int main() using std::endl; // ...dealing with this namespace std. ex pi_frac; for (int i=2; i<12; i+=2) @{ - pi_frac = mechain_pi(i); + pi_frac = machin_pi(i); cout << i << ":\t" << pi_frac << endl << "\t" << pi_frac.evalf() << endl; @} -- 2.44.0