Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __neg__
Method
__neg__
numpy/lib/polynomial.py:1328–1329 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1326
return
polyval(self.coeffs, val)
1327
1328
def
__neg__(self):
1329
return
poly1d(-self.coeffs)
1330
1331
def
__pos__(self):
1332
return
self
Callers
nothing calls this directly
Calls
1
poly1d
Class · 0.85
Tested by
no test coverage detected