Skip to content

Boolean

bool equal(interval<T> a, interval<T> b)

[source]
Details

Returns true if intervals aa and bb are equal.

=:IR×IR→B=: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

a‾=b‾∧aˉ=bˉ\underline{a} = \underline{b} \land \bar{a} = \bar{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta=ba = b
001100
110000
111111

bool subset(interval<T> a, interval<T> b)

[source]
Details

Returns true if aa is a subset of bb.

⊆:IR×IR→B\subseteq: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

b‾≤a‾∧aˉ≤bˉ\underline{b} \leq \underline{a} \land \bar{a} \leq \bar{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta⊆ba \subseteq b
001100
110011
111111

bool interior(interval<T> a, interval<T> b)

[source]
Details

Returns true if aa is in the interior of bb.

interior:IR×IR→B\mathrm{interior}: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

b‾<a‾∧aˉ<bˉ\underline{b} < \underline{a} \land \bar{a} < \bar{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta⊂ba \subset b
001100
110011
111111

bool disjoint(interval<T> a, interval<T> b)

[source]
Details

Returns true if intervals aa and bb are disjoint.

disjoint:IR×IR→B\mathrm{disjoint}: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

aˉ<b‾∨bˉ<a‾\bar{a} < \underline{b} \lor \bar{b} < \underline{a}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta∩b=∅a \cap b = \emptyset
001111
110011
111111

bool less(interval<T> a, interval<T> b)

[source]
Details

Returns true if a≤ba \leq b.

≤:IR×IR→B\leq: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

a‾≤b‾∧aˉ≤bˉ\underline{a} \leq \underline{b} \land \bar{a} \leq \bar{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta≤ba \leq b
001100
110000
111111

bool precedes(interval<T> a, interval<T> b)

[source]
Details

Returns true if aa precedes bb.

⪯:IR×IR→B\preceq: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

aˉ≤b‾\bar{a} \leq \underline{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta⪯ba \preceq b
001111
110011
111111

bool empty(interval<T> x)

[source]
Details

Returns true if interval xx is empty.

isEmpty:IR→B\mathrm{isEmpty}: \mathbb{IR} \rightarrow \mathbb{B}


bool entire(interval<T> x)

[source]
Details

Returns true if interval xx is entire (covers all values).

isEntire:IR→B\mathrm{isEntire}: \mathbb{IR} \rightarrow \mathbb{B}


bool just_zero(interval<T> x)

[source]
Details

Returns true if interval xx is exactly zero.

justZero:IR→B\mathrm{justZero}: \mathbb{IR} \rightarrow \mathbb{B}


bool contains(interval<T> x, T y)

[source]
Details

Returns true if interval xx contains value yy.

contains:IR×R→B\mathrm{contains}: \mathbb{IR}\times\mathbb{R} \rightarrow \mathbb{B}


bool bounded(interval<T> x)

[source]
Details

Returns true if interval xx is bounded.

bounded:IR→B\mathrm{bounded}: \mathbb{IR} \rightarrow \mathbb{B}


bool isfinite(interval<T> x)

[source]
Details

Returns true if interval xx is finite.

isfinite:IR→B\mathrm{isfinite}: \mathbb{IR} \rightarrow \mathbb{B}


bool strict_less_or_both_inf(T x, T y)

[source]
Details

Returns true if x<yx < y or both are infinite.

strictLessOrBothInf:R×R→B\mathrm{strictLessOrBothInf}: \mathbb{R}\times\mathbb{R} \rightarrow \mathbb{B}


bool strict_less(interval<T> a, interval<T> b)

[source]
Details

Returns true if a<ba \lt b.

<:IR×IR→B\lt: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

a‾<b‾∧aˉ<bˉ\underline{a} < \underline{b} \land \bar{a} < \bar{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta<ba < b
001100
110000
111111

bool strict_precedes(interval<T> a, interval<T> b)

[source]
Details

Returns true if aa strictly precedes bb.

≺:IR×IR→B\prec: \mathbb{IR}\times\mathbb{IR} \rightarrow \mathbb{B}

For a,b≠∅a, b\neq \emptyset:

aˉ<b‾\bar{a} < \underline{b}.

Otherwise:

a=∅a = \emptysetb=∅b = \emptyseta≺ba \prec b
001111
110011
111111

bool isinf(interval<T> x)

[source]
Details

Returns true if interval xx is infinite.

isinf:IR→B\mathrm{isinf}: \mathbb{IR} \rightarrow \mathbb{B}


bool isnai(interval<T> x)

[source]
Details

Returns true if interval xx is Not an Interval (NAI).

isnai:IR→B\mathrm{isnai}: \mathbb{IR} \rightarrow \mathbb{B}


bool is_member(T x, interval<T> y)

[source]
Details

Returns true if x∈yx \in y.

∈:R×IR→B\in: \mathbb{R}\times\mathbb{IR} \rightarrow \mathbb{B}


bool is_singleton(interval<T> x)

[source]
Details

Returns true if interval xx is a singleton.

isSingleton:IR→B\mathrm{isSingleton}: \mathbb{IR} \rightarrow \mathbb{B}


bool is_common_interval(interval<T> x)

[source]
Details

Returns true if interval xx is a common interval.

isCommonInterval:IR→B\mathrm{isCommonInterval}: \mathbb{IR} \rightarrow \mathbb{B}


bool isnormal(interval<T> x)

[source]
Details

Returns true if interval xx is normal.

isnormal:IR→B\mathrm{isnormal}: \mathbb{IR} \rightarrow \mathbb{B}


bool is_atomic(interval<T> x)

[source]
Details

Returns true if interval xx is atomic.

isAtomic:IR→B\mathrm{isAtomic}: \mathbb{IR} \rightarrow \mathbb{B}


bool isnan(interval<T> x)

[source]
Details

isnan:IR→B\mathrm{isnan}: \mathbb{IR} \rightarrow \mathbb{B}