{
  "citation_text": "[6]",
  "citation_href": "#mpmath",
  "matched_count": 2,
  "targets": [
    {
      "text": "[6]\tPython\n\nimport mpmath as mp\nmp.mp.dps = 165\n\ndef minus_q(t):\n    s = mp.mpf(1)/2 + mp.j*t\n    d1, d2, d3 = [mp.zeta(s, derivative=k) for k in (1, 2, 3)]\n    u = 1/s + 1/(s-1) - mp.log(mp.pi)/2 + mp.digamma(s/2)/2\n    up = -1/s**2 - 1/(s-1)**2 + mp.polygamma(1, s/2)/4\n    v, w = d2/d1, d3/d1\n    return w - v*v - u*v + 3*up - u*u\n\ndef strong_pair_lhs(n):\n    a, b = [mp.im(mp.zetazero(k)) for k in (n, n+1)]\n    s = (b-a)**2 * (minus_q(a)+minus_q(b))\n    assert abs(mp.im(s)) < mp.mpf('1e-140')\n    return mp.re(s)\n\nprint(mp.nstr(strong_pair_lhs(101), 100))\n# Approximation only; this program supplies no rigorous error bound.",
      "contains_code": true,
      "external_links": []
    },
    {
      "text": "[6]\tmpmath zeta derivatives and Hardy Z",
      "contains_code": false,
      "external_links": [
        "https://mpmath.org/doc/current/functions/zeta.html"
      ]
    }
  ],
  "fragment": "#mpmath",
  "target_text": "[6]\tPython\n\nimport mpmath as mp\nmp.mp.dps = 165\n\ndef minus_q(t):\n    s = mp.mpf(1)/2 + mp.j*t\n    d1, d2, d3 = [mp.zeta(s, derivative=k) for k in (1, 2, 3)]\n    u = 1/s + 1/(s-1) - mp.log(mp.pi)/2 + mp.digamma(s/2)/2\n    up = -1/s**2 - 1/(s-1)**2 + mp.polygamma(1, s/2)/4\n    v, w = d2/d1, d3/d1\n    return w - v*v - u*v + 3*up - u*u\n\ndef strong_pair_lhs(n):\n    a, b = [mp.im(mp.zetazero(k)) for k in (n, n+1)]\n    s = (b-a)**2 * (minus_q(a)+minus_q(b))\n    assert abs(mp.im(s)) < mp.mpf('1e-140')\n    return mp.re(s)\n\nprint(mp.nstr(strong_pair_lhs(101), 100))\n# Approximation only; this program supplies no rigorous error bound.",
  "target_external_links": [],
  "duplicate_ids": {
    "mpmath": 2
  },
  "documentation_target_correct": false,
  "controls": {
    "known_answer_control": true,
    "duplicate_anchor_negative_control_rejected": true
  },
  "entry_count": 105,
  "all_stored_rows_rendered": true,
  "code_content_exact": true,
  "page_errors": [],
  "browser_version": "156.0.8078.4",
  "playwright_version": "1.64.1",
  "html_sha256": "0d606ddda51ee47edcf67e776e4eead636daeb3af804baec0b4c88efb950a812"
}
