back to table · edit · history · where entries came from · files · download
1387 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-python hljs\"><span class=\"hljs-keyword\">from</span> mpmath <span class=\"hljs-keyword\">import</span> mp\nmp.dps = <span class=\"hljs-number\">130</span>\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">def</span> <span class=\"hljs-title\">ghat2</span>(<span class=\"hljs-params\">n</span>):</span>\n a, b = (mp.im(mp.zetazero(j)) <span class=\"hljs-keyword\">for<",
"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
}
}