►OpenClosedInterval(a, b) — (a,b]
— Represents {x:x∈R∪{−∞,∞}anda<xandx≤b}.
►OpenClosedInterval(0, 1) — (0,1]
— Represents the unit interval (excluding 0, including 1).
►OpenClosedInterval(1, 1) — (1,1]
— Represents the empty set.
►OpenClosedInterval(Neg(Infinity), 0) — (−∞,0]
— Represents half the extended real line (excluding minus infinity, including zero).
►OpenClosedInterval(1, -1) — (1,−1]
— Represents the empty set. Note: potentially confusing rendering.
►Add(1, Mul(OpenClosedInterval(0, 1), ConstI)) — 1+(0,1]i
— Represents a set of points in the complex plane. OpenClosedInterval(a, b) should only be used with extended real number a
and b
as endpoints, but line segments in the complex plane can be constructed by applying arithmetic operations to a set of real numbers (acting pointwise).
►Add(OpenClosedInterval(1, 4), Mul(OpenClosedInterval(0, 1), ConstI)) — (1,4]+(0,1]i
— Represents a rectangle in the complex plane.
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
OpenClosedInterval | (a,b] | Open-closed interval |
RR | R | Real numbers |
Infinity | ∞ | Positive infinity |
ConstI | i | Imaginary unit |
Source code for this entry:
Entry(ID("ed302a"), SymbolDefinition(OpenClosedInterval, OpenClosedInterval(a, b), "Open-closed interval"), CodeExample(OpenClosedInterval(a, b), "Represents", Set(x, ForElement(x, Union(RR, Set(Neg(Infinity), Infinity))), And(Less(a, x), LessEqual(x, b))), "."), CodeExample(OpenClosedInterval(0, 1), "Represents the unit interval (excluding 0, including 1)."), CodeExample(OpenClosedInterval(1, 1), "Represents the empty set."), CodeExample(OpenClosedInterval(Neg(Infinity), 0), "Represents half the extended real line (excluding minus infinity, including zero)."), CodeExample(OpenClosedInterval(1, -1), "Represents the empty set.", " Note: potentially confusing rendering."), CodeExample(Add(1, Mul(OpenClosedInterval(0, 1), ConstI)), "Represents a set of points in the complex plane. ", SourceForm(OpenClosedInterval(a, b)), "should only be used with extended real number", a, "and", b, "as endpoints, but line segments in the complex plane can be constructed by applying arithmetic operations to a set of real numbers (acting pointwise)."), CodeExample(Add(OpenClosedInterval(1, 4), Mul(OpenClosedInterval(0, 1), ConstI)), "Represents a rectangle in the complex plane. "))