MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __sub__

Method __sub__

maths/dual_number_automatic_differentiation.py:45–46  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

43 __radd__ = __add__
44
45 def __sub__(self, other):
46 return self + other * -1
47
48 def __mul__(self, other):
49 if not isinstance(other, Dual):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected