staircase.Stairs.divide

Stairs.divide(other)

An operator facilitating the division of one step function by another.

The divisor should cannot be zero-valued anywhere.

Should be used as an operator, i.e. by utilising the symbol /. See examples below.

Returns:A new instance representing the division of one step function by another
Return type:Stairs

Examples

>>> stair_list = [s1, (s2+2), s1/(s2+2)]
>>> fig, axes = plt.subplots(nrows=1, ncols=3, figsize=(17,5), sharey=True, sharex=True)
>>> for ax, title, stair_instance in zip(axes, ("s1", "s2+2", "s1/(s2+2)"), stair_list):
...     stair_instance.plot(ax)
...     ax.set_title(title)
../_images/staircase-Stairs-divide-1.png