MCPcopy Index your code
hub / github.com/evalplus/evalplus / poly

Function poly

tools/humaneval/fix_v014.py:8–9  ·  view source on GitHub ↗
(xs, x)

Source from the content-addressed store, hash-verified

6
7
8def poly(xs, x):
9 return sum([coeff * math.pow(x, i) for i, coeff in enumerate(xs)])
10
11
12def check_valid(xs):

Callers 3

funcFunction · 0.85
derivativeFunction · 0.85
check_validFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected