| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>abs#</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b> |
| 12 | abs# |
| 13 | </b></font></table></table> |
| 14 | <p>A function that can be used in <a href="Formulas.html">Formulas</a>.</p> |
| 15 | <h2>Syntax and semantics</h2> |
| 16 | <dl> |
| 17 | <dt><b><code><font size=+1>abs#</font></code></b> (<i><code><font size=+1>v#</font></code></i>) |
| 18 | <dd>compute the absolute value (<a href="_abs_.html"><b><code><font size=+1>abs</font></code></b></a>) of each element of the vector <i><code><font size=+1>v#</font></code></i>.</dd> |
| 19 | </dl> |
| 20 | <h2>Examples</h2> |
| 21 | <code> a# = <b>abs#</b> ({ -1, 5.5, 0, -456.789 })<br></code> |
| 22 | <code> writeInfoLine: a#<br></code> |
| 23 | <code style="color:red">=></code><br> |
| 24 | <code> 1 5.5 0 456.789<br></code> |
| 25 | <h3>Links to this page</h3> |
| 26 | <ul> |
| 27 | <li><a href="Functions.html">Functions</a> |
| 28 | </ul> |
| 29 | <hr> |
| 30 | <address> |
| 31 | <p>© Paul Boersma 2023</p> |
| 32 | </address> |
| 33 | </body> |
| 34 | </html> |