Template:Open-closed/doc: Difference between revisions
m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 14:43, 29 November 2022
This is a documentation subpage for Template:Open-closed. It may contain usage information, categories and other content that is not part of the original template page. |
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.