staircase.Stairs.negate¶
-
Stairs.
negate
()¶ An operator which produces a new Stairs instance representing the multiplication of the step function by -1.
Should be used as an operator, i.e. by utilising the symbol -. See examples below.
Returns: A new instance representing the multiplication of the step function by -1 Return type: Stairs
See also
Examples
>>> s1.plot() >>> (-s1).plot(color='r')