cube

std.elementwise.cube · Level L0

Elementwise cube.

x³

Signature

cube(x: f64[n]) → f64[n]

Structure

The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks a call to another library function; select it to open that function.

xf64[n]MultiplysqMultiplyyyf64[n]
  • input
  • operation
  • constant
  • call
  • output

Verification

  • Signature proven by NOVA’s shape solver, for every size.
  • Equal to the reference x ** 3 in exact rational arithmetic, on all 40 test cases.
  • All 160 float64 results inside the running error bound; the closest uses 62% of it.
  • Interpreter and NumPy backend return bit-identical results.
Accuracy in detail
correctly rounded (the float64 nearest the exact value)
86%
bit-equal to the NumPy formula in float64
86%
largest error, in units in the last place
1.15

Identity

Calls
—
Called by
sha256:60e33906180fa9499323ae4dd05bf33a89b54a1c3887922934e64e4948fcb66f

The semantic hash of the graph. It changes when the program changes, and never when only its documentation does.