Skip to content

Commit

Permalink
math: docs for math_sqrt()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 17, 2023
1 parent c4c7b50 commit cc0ef8e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/modules/math/doc/math_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,28 @@
$var(x) = 100;
math_log10("$var(x)", "$var(res)");
...
</programlisting>
</example>
</section>
<section id="math.f.sqrt">
<title>
<function moreinfo="none">math_sqrt(x, res)</function>
</title>
<para>
The function computes the square root of x and stores the result
in res.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>math_sqrt</function> usage</title>
<programlisting format="linespecific">
...
math_sqrt("16", "$var(res)");
$var(x) = 16;
math_sqrt("$var(x)", "$var(res)");
...
</programlisting>
</example>
</section>
Expand Down

0 comments on commit cc0ef8e

Please sign in to comment.