Skip to content

Commit b00d4c5

Browse files
committed
FIX: wrong operator in __sub__
1 parent 8373e72 commit b00d4c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/Function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,7 @@ def __sub__(self, other):
20852085
# Create new Function object
20862086
return Function(source, inputs, outputs, interpolation)
20872087
else:
2088-
return Function(lambda x: (self.getValue(x) * other(x)))
2088+
return Function(lambda x: (self.getValue(x) - other(x)))
20892089
# If other is Float except...
20902090
except AttributeError:
20912091
if isinstance(other, (float, int, complex)):

0 commit comments

Comments
 (0)