Template:Open-closed

From Vigyanwiki
Revision as of 10:13, 22 December 2022 by Indicwiki (talk | contribs) (1 revision imported from alpha:Template:Open-closed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

({{{1}}}]

Template documentation


The open-closed template wraps its argument in a left round bracket, right square bracket. These are used to delimit an open-closed interval in mathematics, that is one which doesn't include the start point but does include the end point.

The template uses {{math}} to ensure there is no line break in the expression and the Greek characters look better. It should only be used on its own in text and not within a {{math}} template.

Open-closed and closed-open intervals are liable to be misunderstood and 'fixed' to use round brackets on either side. Use of these templates should warn editors that what is there is what is meant and point to the meaning.

Usage

Use this to wrap an open-closed interval. For example:

The range of atan2 is {{open-closed|−π, π}}.

produces:

The range of atan2 is (−π, π].

See also

  • {{closed-closed}} is a template to delimit a closed-closed interval.
  • {{closed-open}} is a template to delimit a closed-open interval.
  • {{open-open}} is a template to delimit an open-open interval.