Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ simple_power
Function
simple_power
benchmarks/python-performance.py:35–37 ·
view source on GitHub ↗
r"""Simple Power: x^2 + y^2 + z^2
(x, y, z)
Source
from the content-addressed store, hash-verified
33
34
import
numpy
as
np
35
def
simple_power(x, y, z):
36
r
""
"Simple Power: x^2 + y^2 + z^2"
""
37
return
x ** 2 + y ** 2 + z ** 2
38
39
40
import
numpy
as
np
Callers
1
run_benchmarks
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected