| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>arccos</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 | arccos |
| 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>arccos</font></code></b> (<i><code><font size=+1>x</font></code></i>) |
| 18 | <dd>compute the inverse cosine of <i><code><font size=+1>x</font></code></i>.</dd> |
| 19 | </dl> |
| 20 | <h2>Domain</h2> |
| 21 | <p><b><code><font size=+1>arccos</font></code></b> (<i>x</i>) is defined for -1 ≤ <i>x</i> ≤ 1.</p> |
| 22 | <h2>Tests</h2> |
| 23 | <code> <a href="_assert_.html">assert</a> <b>arccos</b> (-1.1) = undefined<br></code> |
| 24 | <code> <a href="_assert_.html">assert</a> <a href="_abs_.html">abs</a> (<b>arccos</b> (-1.0) - pi) < 1e-17<br></code> |
| 25 | <code> <a href="_assert_.html">assert</a> <a href="_abs_.html">abs</a> (<b>arccos</b> (0.0) - pi/2) < 1e-17<br></code> |
| 26 | <code> <a href="_assert_.html">assert</a> <b>arccos</b> (1.0) = 0<br></code> |
| 27 | <code> <a href="_assert_.html">assert</a> <b>arccos</b> (1.1) = undefined<br></code> |
| 28 | <code> <a href="_assert_.html">assert</a> <b>arccos</b> (undefined) = undefined<br></code> |
| 29 | <h3>Links to this page</h3> |
| 30 | <ul> |
| 31 | <li><a href="_arccos-H-H_.html"><code><font size=+1>arccos##</font></code></a> |
| 32 | <li><a href="_arccos-H_.html"><code><font size=+1>arccos#</font></code></a> |
| 33 | <li><a href="Functions.html">Functions</a> |
| 34 | </ul> |
| 35 | <hr> |
| 36 | <address> |
| 37 | <p>© Paul Boersma 2023</p> |
| 38 | </address> |
| 39 | </body> |
| 40 | </html> |