Apéry's constant: Difference between revisions

Content added Content deleted
m (Correction re A.Markov representation (not born till 1856).)
(→‎{{header|Wren}}: Added a verification of actual value using Wren-GMP (MPFR under the hood).)
Line 154: Line 154:


First 20 terms of Wedeniwski representation truncated to 100 decimal places:
First 20 terms of Wedeniwski representation truncated to 100 decimal places:
1.2020569031595942853997381615114499907649862923404988817922715553418382057863130901864558736093352581
</pre>

We can also verify the actual value of Apéry's constant to 100 decimal places using MPFR which has a zeta function built in. A precision of 324 bits is needed.
{{libheader|Wren-gmp}}
<syntaxhighlight lang="ecmascript">import "./gmp" for Mpf

var x = Mpf.new(324)
var zeta = x.zetaUi(3)
System.print(zeta.toString(101))</syntaxhighlight>

{{out}}
<pre>
1.2020569031595942853997381615114499907649862923404988817922715553418382057863130901864558736093352581
1.2020569031595942853997381615114499907649862923404988817922715553418382057863130901864558736093352581
</pre>
</pre>