back to table · edit · history · where entries came from · files · download
1386 bytes, as of the version from 2026-11-16 21:12 (current). Recorded here, not run.
{
"text": "from mpmath import mp\nmp.dps = 130\ndef ghat2(n):\n a, b = (mp.im(mp.zetazero(j)) for j in (n, n+1))\n def minus_Q(t):\n d1, d2, d3 = (mp.siegelz(t, derivative=k) for k in (1,2,3))\n return -d3/d1 + (d2/d1)**2\n return (b-a)**2*(minus_Q(a)+minus_Q(b))/3 - 2\n# Approximate an additional index; this program gives no rigorous error bound.\nprint(mp.nstr(ghat2(101), 100))",
"visible": "",
"css": "",
"display": "block",
"visibility": "visible",
"contentVisibility": "visible",
"font": "12.6px",
"box": {
"x": 93,
"y": 881.484375,
"width": 1299,
"height": 3.1875,
"top": 881.484375,
"right": 1392,
"bottom": 884.671875,
"left": 93
},
"parent": "<pre><code class=\"table-code language- hljs apache\"><span class=\"hljs-attribute\">from</span> mpmath import mp\n<span class=\"hljs-attribute\">mp</span>.dps = <span class=\"hljs-number\">130</span>\n<span class=\"hljs-attribute\">def</span> ghat<span class=\"hljs-number\">2</span>(n):\n <span class=\"hljs-attribute\">a</span>, b = (mp.im(mp.zetazero(j)) for j in (n, n+<span class=\"hljs-number\">1</span>))\n ",
"parentDisplay": "block",
"parentFont": "14px",
"parentBox": {
"x": 93,
"y": 881.484375,
"width": 1299,
"height": 3.1875,
"top": 881.484375,
"right": 1392,
"bottom": 884.671875,
"left": 93
}
}