WLJS LogoWLJS Notebook

Interval

Interval[{min, max}] represents the range of values between min and max.

Interval[{min1, max1}, {min2, max2}, ...] represents a union of ranges.

Examples

Create an interval:

Interval[{0, 1}]
(* Interval[{0, 1}] *)

Arithmetic with intervals:

Interval[{1, 2}] + Interval[{3, 4}]
(* Interval[{4, 6}] *)

Interval containing a function range:

Sin[Interval[{0, Pi}]]
(* Interval[{0, 1}] *)

Please visit the official Wolfram Language Reference for more details.

On this page