MCPcopy 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
40import numpy as np
41def 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
46import numpy as np

Callers 1

run_benchmarksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected