Template:Abs: Difference between revisions
From Vigyanwiki
(tweaking) |
(default behavior (no argument)) |
||
Line 1: | Line 1: | ||
<includeonly>| <!-- hair space -->{{{1}}}|</includeonly><noinclude><!-- | is a vertical bar. --><!-- The hair space to the left prevents the italicized variable (as per math convention) from touching the vertical bar. --> | <includeonly>|{{#if: {{{1|}}} | <!-- hair space -->{{{1}}}| · }}|</includeonly><noinclude><!-- | is a pipe (vertical bar). --><!-- The hair space to the left prevents the italicized variable (as per math convention) from touching the vertical bar. --> | ||
{{documentation|content = | {{documentation|content = | ||
This template may be used to enclose text between two pipes, typically denoting the absolute value. | This template may be used to enclose text between two pipes, typically denoting the [[absolute value]]. | ||
== Usage == | == Usage == | ||
Line 8: | Line 8: | ||
</pre> | </pre> | ||
When {{math|{{abs|''x''}} < 7}}, the function is positive. | When {{math|{{abs|''x''}} < 7}}, the function is positive. | ||
<pre> | |||
The notation {{math|{{abs}}}} means '''absolute value'''. | |||
</pre> | |||
The notation {{math|{{abs}}}} means '''absolute value'''. | |||
== Alternatives == | == Alternatives == |
Revision as of 05:29, 10 March 2016
Template documentation
This template may be used to enclose text between two pipes, typically denoting the absolute value.
Usage
When {{math|{{abs|''x''}} < 7}}, the function is positive.
When | x| < 7, the function is positive.
The notation {{math|{{abs}}}} means '''absolute value'''.
The notation | · | means absolute value.
Alternatives
This template is equivalent to enclosing the text between two {{pipe}}
templates (and a hair space   to the left of the argument; a hair space being a 1.5 mu space, i.e. a 1/12 em space)
When {{math|{{pipe}} <!-- hair space -->''x''{{pipe}} < 7}}, the function is positive.
When | x| < 7, the function is positive.
See also
[[Category:Template documentation pages{{#translation:}}]]