Function divide

  • Computes x/y, an explanation of all the possible cases ca be found on Interval Arithmetic: from Principles to Implementation - T. Hickey, Q. Ju, M.H. van Emden

    NOTE: an extreme case of division might results in multiple intervals, unfortunately this library doesn't support multi-interval arithmetic yet so a single interval will be returned instead with the hull of the resulting intervals (this is the way Boost implements it too)

    Example

    Interval.divide(
    Interval(1, 2),
    Interval(3, 4)
    ) // Interval(prev(1/4), next(2/3))

    Example

    Interval.divide(
    Interval(-2, 1),
    Interval(-4, -3)
    ) // Interval(prev(-1/3), next(2/3))

    Example

    Interval.divide(
    Interval(1, 2),
    Interval(-1, 1)
    ) // Interval(-Infinity, Infinity)

    Returns

    Parameters

    Returns Interval

Generated using TypeDoc