MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / power

Function power

lib/matplotlib/tests/test_triangulation.py:990–991  ·  view source on GitHub ↗
(x, a)

Source from the content-addressed store, hash-verified

988 n = 9
989
990 def power(x, a):
991 return np.abs(x)**a*np.sign(x)
992
993 x = np.linspace(-1., 1., n+1)
994 x, y = np.meshgrid(power(x, 2.), power(x, 0.25))

Callers 1

test_tritoolsFunction · 0.85

Calls 1

signMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…