{"abstract":"Complex exponential rescales only its real component.","category":"Floating-point arithmetic","checks":8,"contract":"Compute exp(x+iy) for finite components using binary exponent splitting. Fixtures keep each final component finite or zero, including cases where exp(x) alone overflows. Return two rendered components; exact trigonometric zeros are preserved. Finite results are rendered to eleven significant decimal digits; modeled domain violations and arithmetic errors are explicit strings.","contract_signature":"x,y","evaluation_group":"s3-float-complex-exp-scaled","failed_approach":"The attempted local correction imag=math.ldexp(scale*s,-k) still violates the explicit regression fixtures.","family":"s3-floating_point_arithmetic-complex-exp-scaled-imag-scale-direction","id":"FA-17296","implementations":{"attempt":{"sha256":"5a338d2f13d408bd563b3fb2ae45b7a231b803b823ebfeb4c58956225bf2165d","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,y):\n    try:\n        k=math.floor(x/math.log(2))\n        f=x-k*math.log(2)\n        scale=math.exp(f)\n        c=math.cos(y); s=math.sin(y)\n        real=math.ldexp(scale*c,k)\n        imag=math.ldexp(scale*s,-k)\n        return [render(real),render(imag)]\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('overflowing common factor', solve(710.0,math.pi/4), [render(math.exp(710-math.log(2))*(2*math.cos(math.pi/4))),render(math.exp(710-math.log(2))*(2*math.sin(math.pi/4)))])\ncheck('negative real projection', solve(float(N),2.0), [render(math.exp(N)*math.cos(2)),render(math.exp(N)*math.sin(2))])\ncheck('ordinary', solve(float(N),0.25), [render(math.exp(N)*math.cos(0.25)),render(math.exp(N)*math.sin(0.25))])\ncheck('negative phase', solve(float(N),-0.25), [render(math.exp(N)*math.cos(-0.25)),render(math.exp(N)*math.sin(-0.25))])\ncheck('negative real', solve(-float(N),0.25), [render(math.exp(-N)*math.cos(0.25)),render(math.exp(-N)*math.sin(0.25))])\ncheck('negative zero phase', solve(float(N),-0.0), [render(math.exp(N)),\"-0\"])\ncheck('zero', solve(0.0,0.0), [\"1\",\"0\"])\ncheck('tiny common factor', solve(-744.0,0.25), [render(math.exp(-744)*math.cos(0.25)),render(math.exp(-744)*math.sin(0.25))])\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":"d194beb6cd8411fa73c163caa73059bc9fd4bf3fa14eb713ccf7f7574824f227","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,y):\n    try:\n        k=math.floor(x/math.log(2))\n        f=x-k*math.log(2)\n        scale=math.exp(f)\n        c=math.cos(y); s=math.sin(y)\n        real=math.ldexp(scale*c,k)\n        imag=scale*s\n        return [render(real),render(imag)]\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('overflowing common factor', solve(710.0,math.pi/4), [render(math.exp(710-math.log(2))*(2*math.cos(math.pi/4))),render(math.exp(710-math.log(2))*(2*math.sin(math.pi/4)))])\ncheck('negative real projection', solve(float(N),2.0), [render(math.exp(N)*math.cos(2)),render(math.exp(N)*math.sin(2))])\ncheck('ordinary', solve(float(N),0.25), [render(math.exp(N)*math.cos(0.25)),render(math.exp(N)*math.sin(0.25))])\ncheck('negative phase', solve(float(N),-0.25), [render(math.exp(N)*math.cos(-0.25)),render(math.exp(N)*math.sin(-0.25))])\ncheck('negative real', solve(-float(N),0.25), [render(math.exp(-N)*math.cos(0.25)),render(math.exp(-N)*math.sin(0.25))])\ncheck('negative zero phase', solve(float(N),-0.0), [render(math.exp(N)),\"-0\"])\ncheck('zero', solve(0.0,0.0), [\"1\",\"0\"])\ncheck('tiny common factor', solve(-744.0,0.25), [render(math.exp(-744)*math.cos(0.25)),render(math.exp(-744)*math.sin(0.25))])\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-complex-exp-scaled-imag-scale-direction","generated_at":"2026-09-29T14:39:45.049801+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.","root_cause":"Complex exponential rescales only its real component. The faulty expression is imag=scale*s.","sha256":"962e6f1688b832b3ca06ad22a07e663332f0fa029fa7ac98537c3aed3f4357f3","title":"Complex exponential rescales only its real component · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":43.89,"exit_code":1,"observations":[{"actual":["1.5796728483e+308","4.8880544343e-309"],"check":"overflowing common factor","expected":["1.5796728483e+308","1.5796728483e+308"],"passed":false},{"actual":["-1.1312043838","0.617931668"],"check":"negative real projection","expected":["-1.1312043838","2.471726672"],"passed":false},{"actual":["2.6337770293","0.16812842168"],"check":"ordinary","expected":["2.6337770293","0.67251368673"],"passed":false},{"actual":["2.6337770293","-0.16812842168"],"check":"negative phase","expected":["2.6337770293","-0.67251368673"],"passed":false},{"actual":["0.35644296024","1.4562372844"],"check":"negative real","expected":["0.35644296024","0.091014830274"],"passed":false},{"actual":["2.7182818285","-0"],"check":"negative zero phase","expected":["2.7182818285","-0"],"passed":true},{"actual":["1","0"],"check":"zero","expected":["1","0"],"passed":true},{"actual":"arithmetic-error","check":"tiny common factor","expected":["9.8813129168e-324","0"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"overflowing common factor\", \"actual\": [\"1.5796728483e+308\", \"4.8880544343e-309\"], \"expected\": [\"1.5796728483e+308\", \"1.5796728483e+308\"], \"passed\": false}, {\"check\": \"negative real projection\", \"actual\": [\"-1.1312043838\", \"0.617931668\"], \"expected\": [\"-1.1312043838\", \"2.471726672\"], \"passed\": false}, {\"check\": \"ordinary\", \"actual\": [\"2.6337770293\", \"0.16812842168\"], \"expected\": [\"2.6337770293\", \"0.67251368673\"], \"passed\": false}, {\"check\": \"negative phase\", \"actual\": [\"2.6337770293\", \"-0.16812842168\"], \"expected\": [\"2.6337770293\", \"-0.67251368673\"], \"passed\": false}, {\"check\": \"negative real\", \"actual\": [\"0.35644296024\", \"1.4562372844\"], \"expected\": [\"0.35644296024\", \"0.091014830274\"], \"passed\": false}, {\"check\": \"negative zero phase\", \"actual\": [\"2.7182818285\", \"-0\"], \"expected\": [\"2.7182818285\", \"-0\"], \"passed\": true}, {\"check\": \"zero\", \"actual\": [\"1\", \"0\"], \"expected\": [\"1\", \"0\"], \"passed\": true}, {\"check\": \"tiny common factor\", \"actual\": \"arithmetic-error\", \"expected\": [\"9.8813129168e-324\", \"0\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":47.649,"exit_code":1,"observations":[{"actual":["1.5796728483e+308","0.87872218993"],"check":"overflowing common factor","expected":["1.5796728483e+308","1.5796728483e+308"],"passed":false},{"actual":["-1.1312043838","1.235863336"],"check":"negative real projection","expected":["-1.1312043838","2.471726672"],"passed":false},{"actual":["2.6337770293","0.33625684337"],"check":"ordinary","expected":["2.6337770293","0.67251368673"],"passed":false},{"actual":["2.6337770293","-0.33625684337"],"check":"negative phase","expected":["2.6337770293","-0.67251368673"],"passed":false},{"actual":["0.35644296024","0.3640593211"],"check":"negative real","expected":["0.35644296024","0.091014830274"],"passed":false},{"actual":["2.7182818285","-0"],"check":"negative zero phase","expected":["2.7182818285","-0"],"passed":true},{"actual":["1","0"],"check":"zero","expected":["1","0"],"passed":true},{"actual":["9.8813129168e-324","0.38417354272"],"check":"tiny common factor","expected":["9.8813129168e-324","0"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"overflowing common factor\", \"actual\": [\"1.5796728483e+308\", \"0.87872218993\"], \"expected\": [\"1.5796728483e+308\", \"1.5796728483e+308\"], \"passed\": false}, {\"check\": \"negative real projection\", \"actual\": [\"-1.1312043838\", \"1.235863336\"], \"expected\": [\"-1.1312043838\", \"2.471726672\"], \"passed\": false}, {\"check\": \"ordinary\", \"actual\": [\"2.6337770293\", \"0.33625684337\"], \"expected\": [\"2.6337770293\", \"0.67251368673\"], \"passed\": false}, {\"check\": \"negative phase\", \"actual\": [\"2.6337770293\", \"-0.33625684337\"], \"expected\": [\"2.6337770293\", \"-0.67251368673\"], \"passed\": false}, {\"check\": \"negative real\", \"actual\": [\"0.35644296024\", \"0.3640593211\"], \"expected\": [\"0.35644296024\", \"0.091014830274\"], \"passed\": false}, {\"check\": \"negative zero phase\", \"actual\": [\"2.7182818285\", \"-0\"], \"expected\": [\"2.7182818285\", \"-0\"], \"passed\": true}, {\"check\": \"zero\", \"actual\": [\"1\", \"0\"], \"expected\": [\"1\", \"0\"], \"passed\": true}, {\"check\": \"tiny common factor\", \"actual\": [\"9.8813129168e-324\", \"0.38417354272\"], \"expected\": [\"9.8813129168e-324\", \"0\"], \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}