Function difference

  • Computes the difference between x and y, i.e. an interval with all the values of x that are not in y

    Example

    Interval.difference(
    Interval(3, 5),
    Interval(4, 6)
    ) // Interval(3, prev(4))
    Interval.difference(
    Interval(0, 3),
    Interval(0, 1)
    ) // Interval(next(1), 3)
    Interval.difference(
    Interval(0, 1),
    Interval.WHOLE
    ) // Interval.EMPTY
    Interval.difference(
    Interval(-Infinity, 0),
    Interval.WHOLE
    ) // Interval.EMPTY

    Throws

    When the difference creates multiple intervals

    Returns

    Parameters

    Returns Interval

Generated using TypeDoc