FA-6435 / Discrete calculus / Member archive
Piecewise linear slope sequence · case 05
The sample spacing is ignored.
Case contract
Integer sample values and compatible sample-array lengths. Rational results are reduced Fraction strings; spacing is positive unless explicitly stated otherwise. x and y lengths match and neighboring x values are distinct; return each segment slope. Exact operational definition: [str(Fraction(v-u,b-a)) for a,b,u,v in zip(x,x[1:],y,y[1:])]
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Discrete calculus results depend on the stated convention.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: ([0, 2, 3], [0, 4, 5]) | ["4", "1"] | ["2", "1"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗