Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ __neg__
Method
__neg__
recipes/Python/580610_Auto_differentiation/recipe-580610.py:104–105 ·
view source on GitHub ↗
(u)
Source
from the content-addressed store, hash-verified
102
return
u
103
104
def
__neg__(u):
105
return
Num(-float(u), -d(u))
106
107
__radd__ = __add__
108
__rmul__ = __mul__
Callers
nothing calls this directly
Calls
2
Num
Class · 0.70
d
Function · 0.50
Tested by
no test coverage detected