Template:Abs/doc
This template is designed to typeset the absolute value of a variable or expression. It is only necessary on fractions or when scaling is necessary; for individual variables you can simply use {{!}}x{{!}}
or {{pipe}}x{{pipe}}
.
Parameters
{{{1}}}
- The expression to be enclosed.
{{{2}}}
- The scale factor, used to stretch or compress the absolute value bars.
Usage
You type | You get |
---|---|
{{abs|''x''}} |
|x| |
{{abs|{{sfrac|''x''|''y''}}|1.8}} |
|x/y| |