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

Examples

>>> s1.plot()
>>> (-s1).plot(color='r')
../_images/staircase-Stairs-negate-1_00.png
../_images/staircase-Stairs-negate-1_01.png