Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Interval (mathematics)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Notations for intervals== The interval of numbers between {{mvar|a}} and {{mvar|b}}, including {{mvar|a}} and {{mvar|b}}, is often denoted {{closed-closed|''a'',β''b''}}. The two numbers are called the ''endpoints'' of the interval. In countries where numbers are written with a [[decimal comma]], a [[semicolon]] may be used as a separator to avoid ambiguity. ===Including or excluding endpoints=== To indicate that one of the endpoints is to be excluded from the set, the corresponding square bracket can be either replaced with a parenthesis, or reversed. Both notations are described in [[International standard]] [[ISO 31-11]]. Thus, in [[set builder notation]], :<math>\begin{align} (a,b) = \mathopen{]}a,b\mathclose{[} &= \{x\in\R \mid a<x<b\}, \\[5mu] [a,b) = \mathopen{[}a,b\mathclose{[} &= \{x\in\R \mid a\le x<b\}, \\[5mu] (a,b] = \mathopen{]}a,b\mathclose{]} &= \{x\in\R \mid a<x\le b\}, \\[5mu] [a,b] = \mathopen{[}a,b\mathclose{]} &= \{x\in\R \mid a\le x\le b\}. \end{align}</math> Each interval {{open-open|''a'',β''a''}}, {{closed-open|''a'',β''a''}}, and {{open-closed|''a'',β''a''}} represents the [[empty set]], whereas {{closed-closed|''a'',β''a''}} denotes the singleton set {{math|{''a''}{{null}}}}. When {{math|''a'' > ''b''}}, all four notations are usually taken to represent the empty set. Both notations may overlap with other uses of parentheses and brackets in mathematics. For instance, the notation {{math|(''a'', ''b'')}} is often used to denote an [[tuple|ordered pair]] in set theory, the [[coordinates]] of a [[point (geometry)|point]] or [[vector (mathematics)|vector]] in [[analytic geometry]] and [[linear algebra]], or (sometimes) a [[complex number]] in [[algebra]]. That is why [[Nicolas Bourbaki|Bourbaki]] introduced the notation {{math|]''a'', ''b''[}} to denote the open interval.<ref>{{cite web|url=http://hsm.stackexchange.com/a/193|title=Why is American and French notation different for open intervals (''x'', ''y'') vs. ]''x'', ''y''[?|website=hsm.stackexchange.com|access-date=28 April 2018}}</ref> The notation {{math|[''a'', ''b'']}} too is occasionally used for ordered pairs, especially in [[computer science]]. Some authors such as Yves TillΓ© use {{math|]''a'', ''b''[}} to denote the complement of the interval {{open-open|''a'',β''b''}}; namely, the set of all real numbers that are either less than or equal to {{mvar|a}}, or greater than or equal to {{mvar|b}}. ===Infinite endpoints=== In some contexts, an interval may be defined as a subset of the [[extended real number line|extended real numbers]], the set of all real numbers augmented with {{math|ββ}} and {{math|+β}}. In this interpretation, the notations {{closed-closed|ββ,β''b''}}β, {{open-closed|ββ,β''b''}}β, {{closed-closed|''a'',β+β}}β, and {{closed-open|''a'',β+β}} are all meaningful and distinct. In particular, {{open-open|ββ,β+β}} denotes the set of all ordinary real numbers, while {{closed-closed|ββ,β+β}} denotes the extended reals. Even in the context of the ordinary reals, one may use an [[infinity (mathematics)|infinite]] endpoint to indicate that there is no bound in that direction. For example, {{open-open|0,β+β}} is the set of [[positive real numbers]], also written as <math>\mathbb{R}_+.</math> The context affects some of the above definitions and terminology. For instance, the interval {{open-open|ββ,β+β}} = <math>\R</math> is closed in the realm of ordinary reals, but not in the realm of the extended reals. ===Integer intervals=== When {{mvar|a}} and {{mvar|b}} are [[integer]]s, the notation β¦''a, b''β§, or {{closed-closed|''a'' .. ''b''}} or {{math|{''a'' .. ''b''}{{null}}}} or just {{math|''a'' .. ''b''}}, is sometimes used to indicate the interval of all ''integers'' between {{mvar|a}} and {{mvar|b}} included. The notation {{closed-closed|''a'' .. ''b''}} is used in some [[programming language]]s; in [[Pascal programming language|Pascal]], for example, it is used to formally define a subrange type, most frequently used to specify lower and upper bounds of valid [[Indexed family|indices]] of an [[Array data type|array]]. Another way to interpret integer intervals are as [[Set-builder_notation#Sets_defined_by_enumeration|sets defined by enumeration]], using [[ellipsis]] notation. An integer interval that has a finite lower or upper endpoint always includes that endpoint. Therefore, the exclusion of endpoints can be explicitly denoted by writing {{math|''a'' .. ''b''βββ1}}β, {{math|''a''β+β1 .. ''b''}}β, or {{math|''a''β+β1 .. ''b''βββ1}}. Alternate-bracket notations like {{closed-open|''a'' .. ''b''}} or {{math|[''a'' .. ''b''[}} are rarely used for integer intervals.{{citation needed|date=February 2014}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)