bisect_cube_step
std.seq.bisect_cube_step · Level L2One bisection step for x³ = a: halve the bracket [lo, hi], keeping the half where x³ − a changes sign. The body that cbrt_bisect runs.
mid = (lo + hi)/2; mid³ > a ? [lo, mid] : [mid, hi]
Signature
bisect_cube_step(lohi: f64[2], a: f64[]) → f64[2]
Structure
The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks another library function this one runs — called once, or by Scan once per element; select it to open that function.
- input
- operation
- constant
- call
- output
Verification
- Signature proven by NOVA’s shape solver, for every size.
- Equal to the reference
mid = (lo + hi)/2; [lo, mid] if mid**3 > a else [mid, hi]in exact rational arithmetic, on all 40 test cases. - All 80 float64 results inside the running error bound; the closest uses 49% of it.
- Interpreter and NumPy backend return bit-identical results.
Accuracy in detail
- correctly rounded (the float64 nearest the exact value)
- 100%
- bit-equal to the NumPy formula in float64
- 100%
- largest error, in units in the last place
- 0.50
Identity
sha256:67d3646d7cd8b0d833f4da0e1e055b5d0deb39bc5dcbf0871ab4b61f8fb26c6aThe semantic hash of the graph. It changes when the program changes, and never when only its documentation does.