MCPcopy Create free account
hub / github.com/nodejs/node / abs_error

Function abs_error

deps/v8/test/mjsunit/sin-cos.js:113–115  ·  view source on GitHub ↗
(fun, ref, x)

Source from the content-addressed store, hash-verified

111}
112
113function abs_error(fun, ref, x) {
114 return Math.abs(ref(x) - fun(x));
115}
116
117var test_inputs = [];
118for (var i = -10000; i < 10000; i += 177) test_inputs.push(i/1257);

Callers 1

sin-cos.jsFile · 0.85

Calls 2

funFunction · 0.70
refFunction · 0.50

Tested by

no test coverage detected