Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ polynomial
Function
polynomial
benchmarks/python-performance.py:41–43 ·
view source on GitHub ↗
r"""Polynomial: x^4 + 3x^3 + 2x^2 + x + 1
(x)
Source
from the content-addressed store, hash-verified
39
40
import
numpy
as
np
41
def
polynomial(x):
42
r
""
"Polynomial: x^4 + 3x^3 + 2x^2 + x + 1"
""
43
return
x ** 4 + 3 * x ** 3 + 2 * x ** 2 + x + 1
44
45
46
import
numpy
as
np
Callers
1
run_benchmarks
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected