div

operator fun div(i: Interval): Interval(source)

Divides the current interval by the given interval and returns the resulting interval. Division is computed by multiplying the current interval by the reciprocal of the given interval.

Special cases are handled:

  • If both boundaries of the given interval are zero, the result is the interval spanning from negative infinity to positive infinity.

  • If only the lower boundary is zero, the result is multiplied by an interval spanning from the reciprocal of the upper boundary to positive infinity.

  • If only the upper boundary is zero, the result is multiplied by an interval spanning from negative infinity to the reciprocal of the lower boundary.

Return

the resulting interval after division

Parameters

i

the interval to divide by