Function mul

  • Multiplies two intervals, 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

    Example

    Interval.multiply(
    Interval(1, 2),
    Interval(2, 3)
    ) // Interval(prev(2), next(6))

    Example

    Interval.multiply(
    Interval(1, Infinity),
    Interval(4, 6)
    ) // Interval(prev(4), Infinity)

    Example

    Interval.multiply(
    Interval(1, 2),
    Interval(-3, -2)
    ) // Interval(prev(-6), next(-2))

    Example

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

    Example

    Interval.multiply(
    Interval(-2, -1),
    Interval(-3, -2)
    ) // Interval(prev(2), next(6))

    Returns

    Parameters

    Returns Interval

Generated using TypeDoc