{"abstract":"Sinc series uses x instead of x squared.","category":"Floating-point arithmetic","checks":7,"contract":"Evaluate sin(x)/x on finite x with continuous value one at zero. Tiny values use the fourth-degree even series. Finite results are rendered to eleven significant decimal digits; modeled domain violations and arithmetic errors are explicit strings.","evaluation_group":"s3-float-sinc","failed_approach":"The attempted local correction t=abs(x) still violates the explicit regression fixtures.","family":"s3-floating_point_arithmetic-sinc-series-evenness","id":"FA-16336","implementations":{"attempt":{"sha256":"a71c16c4565c67c01b66700cebad83fb2002339663cbebff91ba284972257d29","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport struct\ndef render(x):\n    if math.isnan(x): return 'nan'\n    if math.isinf(x): return '-infinity' if x<0 else '+infinity'\n    return format(x,'.11g')\n\nN = 1\nobservations = []\ndef solve(x):\n    try:\n        if x==0: return '1'\n        if abs(x)<1e-3:\n            t=abs(x)\n            result=1-t/6+t*t/120\n        else:\n            result=math.sin(x)/x\n        return render(result)\n    except (ValueError, OverflowError, ZeroDivisionError, TypeError):\n        return \"arithmetic-error\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('zero', solve(0.0), \"1\")\ncheck('negative zero', solve(-0.0), \"1\")\ncheck('small', solve(N*1e-4), render(math.sin(N*1e-4)/(N*1e-4)))\ncheck('negative small', solve(-N*1e-4), render(math.sin(-N*1e-4)/(-N*1e-4)))\ncheck('normal', solve(float(N)), render(math.sin(N)/N))\ncheck('negative normal', solve(-float(N)), render(math.sin(-N)/(-N)))\ncheck('phase crossing', solve(math.pi+0.125*N), render(math.sin(math.pi+0.125*N)/(math.pi+0.125*N)))\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"153ceb66e821eea4aeb9ef2e5322ae2cddf86680da702dfaabbb716eec7d7c9a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport struct\ndef render(x):\n    if math.isnan(x): return 'nan'\n    if math.isinf(x): return '-infinity' if x<0 else '+infinity'\n    return format(x,'.11g')\n\nN = 1\nobservations = []\ndef solve(x):\n    try:\n        if x==0: return '1'\n        if abs(x)<1e-3:\n            t=x\n            result=1-t/6+t*t/120\n        else:\n            result=math.sin(x)/x\n        return render(result)\n    except (ValueError, OverflowError, ZeroDivisionError, TypeError):\n        return \"arithmetic-error\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('zero', solve(0.0), \"1\")\ncheck('negative zero', solve(-0.0), \"1\")\ncheck('small', solve(N*1e-4), render(math.sin(N*1e-4)/(N*1e-4)))\ncheck('negative small', solve(-N*1e-4), render(math.sin(-N*1e-4)/(-N*1e-4)))\ncheck('normal', solve(float(N)), render(math.sin(N)/N))\ncheck('negative normal', solve(-float(N)), render(math.sin(-N)/(-N)))\ncheck('phase crossing', solve(math.pi+0.125*N), render(math.sin(math.pi+0.125*N)/(math.pi+0.125*N)))\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"ae22c0a2889ac818972e70cc72be1b702de4e30ecdff2ffa50f781c55900d8e9","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport struct\ndef render(x):\n    if math.isnan(x): return 'nan'\n    if math.isinf(x): return '-infinity' if x<0 else '+infinity'\n    return format(x,'.11g')\n\nN = 1\nobservations = []\ndef solve(x):\n    try:\n        if x==0: return '1'\n        if abs(x)<1e-3:\n            t=x*x\n            result=1-t/6+t*t/120\n        else:\n            result=math.sin(x)/x\n        return render(result)\n    except (ValueError, OverflowError, ZeroDivisionError, TypeError):\n        return \"arithmetic-error\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('zero', solve(0.0), \"1\")\ncheck('negative zero', solve(-0.0), \"1\")\ncheck('small', solve(N*1e-4), render(math.sin(N*1e-4)/(N*1e-4)))\ncheck('negative small', solve(-N*1e-4), render(math.sin(-N*1e-4)/(-N*1e-4)))\ncheck('normal', solve(float(N)), render(math.sin(N)/N))\ncheck('negative normal', solve(-float(N)), render(math.sin(-N)/(-N)))\ncheck('phase crossing', solve(math.pi+0.125*N), render(math.sin(math.pi+0.125*N)/(math.pi+0.125*N)))\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Controlled binary64 or explicitly stipulated miniature format; no hardware exception flags or platform floating environment are modeled. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"s3-floating_point_arithmetic-sinc-series-evenness","generated_at":"2026-09-29T14:39:35.358147+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline floating representation model isolates a reproducible arithmetic fault.","repair":"Apply the contract at this fault site using t=x*x.","root_cause":"Sinc series uses x instead of x squared. The faulty expression is t=x.","sha256":"d73f4db646a46af539af16286ef0451d306a0edb5889a9dd6c416372cb4a5b05","title":"Sinc series uses x instead of x squared · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.684,"exit_code":1,"observations":[{"actual":"1","check":"zero","expected":"1","passed":true},{"actual":"1","check":"negative zero","expected":"1","passed":true},{"actual":"0.99998333342","check":"small","expected":"0.99999999833","passed":false},{"actual":"0.99998333342","check":"negative small","expected":"0.99999999833","passed":false},{"actual":"0.84147098481","check":"normal","expected":"0.84147098481","passed":true},{"actual":"0.84147098481","check":"negative normal","expected":"0.84147098481","passed":true},{"actual":"-0.038166599453","check":"phase crossing","expected":"-0.038166599453","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}, {\"check\": \"negative zero\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}, {\"check\": \"small\", \"actual\": \"0.99998333342\", \"expected\": \"0.99999999833\", \"passed\": false}, {\"check\": \"negative small\", \"actual\": \"0.99998333342\", \"expected\": \"0.99999999833\", \"passed\": false}, {\"check\": \"normal\", \"actual\": \"0.84147098481\", \"expected\": \"0.84147098481\", \"passed\": true}, {\"check\": \"negative normal\", \"actual\": \"0.84147098481\", \"expected\": \"0.84147098481\", \"passed\": true}, {\"check\": \"phase crossing\", \"actual\": \"-0.038166599453\", \"expected\": \"-0.038166599453\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.258,"exit_code":1,"observations":[{"actual":"1","check":"zero","expected":"1","passed":true},{"actual":"1","check":"negative zero","expected":"1","passed":true},{"actual":"0.99998333342","check":"small","expected":"0.99999999833","passed":false},{"actual":"1.0000166668","check":"negative small","expected":"0.99999999833","passed":false},{"actual":"0.84147098481","check":"normal","expected":"0.84147098481","passed":true},{"actual":"0.84147098481","check":"negative normal","expected":"0.84147098481","passed":true},{"actual":"-0.038166599453","check":"phase crossing","expected":"-0.038166599453","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}, {\"check\": \"negative zero\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}, {\"check\": \"small\", \"actual\": \"0.99998333342\", \"expected\": \"0.99999999833\", \"passed\": false}, {\"check\": \"negative small\", \"actual\": \"1.0000166668\", \"expected\": \"0.99999999833\", \"passed\": false}, {\"check\": \"normal\", \"actual\": \"0.84147098481\", \"expected\": \"0.84147098481\", \"passed\": true}, {\"check\": \"negative normal\", \"actual\": \"0.84147098481\", \"expected\": \"0.84147098481\", \"passed\": true}, {\"check\": \"phase crossing\", \"actual\": \"-0.038166599453\", \"expected\": \"-0.038166599453\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.868,"exit_code":0,"observations":[{"actual":"1","check":"zero","expected":"1","passed":true},{"actual":"1","check":"negative zero","expected":"1","passed":true},{"actual":"0.99999999833","check":"small","expected":"0.99999999833","passed":true},{"actual":"0.99999999833","check":"negative small","expected":"0.99999999833","passed":true},{"actual":"0.84147098481","check":"normal","expected":"0.84147098481","passed":true},{"actual":"0.84147098481","check":"negative normal","expected":"0.84147098481","passed":true},{"actual":"-0.038166599453","check":"phase crossing","expected":"-0.038166599453","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}, {\"check\": \"negative zero\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}, {\"check\": \"small\", \"actual\": \"0.99999999833\", \"expected\": \"0.99999999833\", \"passed\": true}, {\"check\": \"negative small\", \"actual\": \"0.99999999833\", \"expected\": \"0.99999999833\", \"passed\": true}, {\"check\": \"normal\", \"actual\": \"0.84147098481\", \"expected\": \"0.84147098481\", \"passed\": true}, {\"check\": \"negative normal\", \"actual\": \"0.84147098481\", \"expected\": \"0.84147098481\", \"passed\": true}, {\"check\": \"phase crossing\", \"actual\": \"-0.038166599453\", \"expected\": \"-0.038166599453\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}