Template:Abs: Difference between revisions

From Vigyanwiki
Template>Frietjes
No edit summary
(tweaking)
Line 1: Line 1:
&#124;{{{1}}}&#124;<noinclude>
<includeonly>&#124;&#x200A;<!-- hair space -->{{{1}}}&#124;</includeonly><noinclude><!-- &#124; is a 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 ==
<pre>
<pre>
When {{nowrap|{{abs|x}} < 7}}, the function is positive.
When {{math|{{abs|''x''}} < 7}}, the function is positive.
</pre>
</pre>
When {{nowrap|{{abs|x}} < 7}}, the function is positive.
When {{math|{{abs|''x''}} < 7}}, the function is positive.


== Alternatives ==
== Alternatives ==
This template is equivalent to enclosing the text between two {{tld|pipe}} templates
This template is equivalent to enclosing the text between two {{tld|pipe}} templates (and a hair space &amp;#x200A; to the left of the argument; a hair space being a 1.5 mu space, i.e. a 1/12 em space)
<pre>
<pre>
When {{nowrap|{{pipe}}x{{pipe}} < 7}}, the function is positive.
When {{math|{{pipe}}&amp;#x200A;<!-- hair space -->''x''{{pipe}} < 7}}, the function is positive.
</pre>
</pre>
When {{nowrap|{{pipe}}x{{pipe}} < 7}}, the function is positive.
When {{math|{{pipe}}&#x200A;<!-- hair space -->''x''{{pipe}} < 7}}, the function is positive.


== See also ==
== See also ==

Revision as of 22:22, 9 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.

Alternatives

This template is equivalent to enclosing the text between two {{pipe}} templates (and a hair space &#x200A; 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}}&#x200A;<!-- hair space -->''x''{{pipe}} < 7}}, the function is positive.

When | x| < 7, the function is positive.

See also

[[Category:Template documentation pages{{#translation:}}]]