Documentation for c1a9019d2a

This commit is contained in:
github-actions
2022-02-02 05:41:45 +00:00
parent 458e6d95bd
commit 2a8aedca14
73 changed files with 3454 additions and 1951 deletions

View File

@@ -161,6 +161,38 @@ Functions</h2></td></tr>
<tr class="memitem:a6e2dff75c5de70455b90c799d6ad6967"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a6e2dff75c5de70455b90c799d6ad6967">n_choose_r</a> (T n, T r)</td></tr>
<tr class="memdesc:a6e2dff75c5de70455b90c799d6ad6967"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the function implementation of \( \binom{n}{r} \). <a href="../../dd/d47/namespacemath.html#a6e2dff75c5de70455b90c799d6ad6967">More...</a><br /></td></tr>
<tr class="separator:a6e2dff75c5de70455b90c799d6ad6967"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9236348755183644f1225e162d01ab14"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a9236348755183644f1225e162d01ab14"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14">square_perimeter</a> (T length)</td></tr>
<tr class="memdesc:a9236348755183644f1225e162d01ab14"><td class="mdescLeft">&#160;</td><td class="mdescRight">perimeter of a <a href="https://en.wikipedia.org/wiki/Square" target="_blank">square</a> (4 * l) <a href="../../dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14">More...</a><br /></td></tr>
<tr class="separator:a9236348755183644f1225e162d01ab14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a428769a16e9525e56588d7c7709d25a6"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a428769a16e9525e56588d7c7709d25a6"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a428769a16e9525e56588d7c7709d25a6">rect_perimeter</a> (T length, T width)</td></tr>
<tr class="memdesc:a428769a16e9525e56588d7c7709d25a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">perimeter of a <a href="https://en.wikipedia.org/wiki/Rectangle" target="_blank">rectangle</a> ( 2(l + w) ) <a href="../../dd/d47/namespacemath.html#a428769a16e9525e56588d7c7709d25a6">More...</a><br /></td></tr>
<tr class="separator:a428769a16e9525e56588d7c7709d25a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d1e4db743b189f309327572663415f3"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3d1e4db743b189f309327572663415f3"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a3d1e4db743b189f309327572663415f3">triangle_perimeter</a> (T base, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>, T hypotenuse)</td></tr>
<tr class="memdesc:a3d1e4db743b189f309327572663415f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">perimeter of a <a href="https://en.wikipedia.org/wiki/Triangle" target="_blank">triangle</a> (a + b + c) <a href="../../dd/d47/namespacemath.html#a3d1e4db743b189f309327572663415f3">More...</a><br /></td></tr>
<tr class="separator:a3d1e4db743b189f309327572663415f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0acf82b7bc920182bf8322d1e103953"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ad0acf82b7bc920182bf8322d1e103953"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953">circle_perimeter</a> (T radius)</td></tr>
<tr class="memdesc:ad0acf82b7bc920182bf8322d1e103953"><td class="mdescLeft">&#160;</td><td class="mdescRight">perimeter of a <a href="https://en.wikipedia.org/wiki/perimeter_of_a_circle" target="_blank">circle</a> (2 * pi * r) <a href="../../dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953">More...</a><br /></td></tr>
<tr class="separator:ad0acf82b7bc920182bf8322d1e103953"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0efb235330ff48e14fd31faaccbcebb3"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a0efb235330ff48e14fd31faaccbcebb3"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a0efb235330ff48e14fd31faaccbcebb3">parallelogram_perimeter</a> (T base, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>)</td></tr>
<tr class="memdesc:a0efb235330ff48e14fd31faaccbcebb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">perimeter of a <a href="https://en.wikipedia.org/wiki/Parallelogram" target="_blank">parallelogram</a> 2(b + h) <a href="../../dd/d47/namespacemath.html#a0efb235330ff48e14fd31faaccbcebb3">More...</a><br /></td></tr>
<tr class="separator:a0efb235330ff48e14fd31faaccbcebb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8998ca7b1886d1d7d00aef3b457a9b1b"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a8998ca7b1886d1d7d00aef3b457a9b1b"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b">cube_surface_perimeter</a> (T length)</td></tr>
<tr class="memdesc:a8998ca7b1886d1d7d00aef3b457a9b1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">surface perimeter of a <a href="https://en.wikipedia.org/wiki/Cube" target="_blank">cube</a> ( 12 <a href="../../dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b">More...</a><br /></td></tr>
<tr class="separator:a8998ca7b1886d1d7d00aef3b457a9b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8592c3279c41a2c6d4d64eeb488f63f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:aa8592c3279c41a2c6d4d64eeb488f63f"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#aa8592c3279c41a2c6d4d64eeb488f63f">n_polygon_surface_perimeter</a> (T sides, T length)</td></tr>
<tr class="memdesc:aa8592c3279c41a2c6d4d64eeb488f63f"><td class="mdescLeft">&#160;</td><td class="mdescRight">surface perimeter of a <a href="https://www.cuemath.com/measurement/perimeter-of-polygon/" target="_blank">n-polygon</a> ( n * l) <a href="../../dd/d47/namespacemath.html#aa8592c3279c41a2c6d4d64eeb488f63f">More...</a><br /></td></tr>
<tr class="separator:aa8592c3279c41a2c6d4d64eeb488f63f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d4df7a4e43a2eac1acc0ac610487c73"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a1d4df7a4e43a2eac1acc0ac610487c73"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73">cylinder_surface_perimeter</a> (T radius, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>)</td></tr>
<tr class="memdesc:a1d4df7a4e43a2eac1acc0ac610487c73"><td class="mdescLeft">&#160;</td><td class="mdescRight">surface perimeter of a <a href="https://en.wikipedia.org/wiki/Cylinder" target="_blank">cylinder</a> (2 * radius + 2 * height) <a href="../../dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73">More...</a><br /></td></tr>
<tr class="separator:a1d4df7a4e43a2eac1acc0ac610487c73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89ab7d6c3e3ee72a8cbaa85127986185"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a89ab7d6c3e3ee72a8cbaa85127986185">power_of_two</a> (int n)</td></tr>
<tr class="memdesc:a89ab7d6c3e3ee72a8cbaa85127986185"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to test above algorithm. <a href="../../dd/d47/namespacemath.html#a89ab7d6c3e3ee72a8cbaa85127986185">More...</a><br /></td></tr>
<tr class="separator:a89ab7d6c3e3ee72a8cbaa85127986185"><td class="memSeparator" colspan="2">&#160;</td></tr>
@@ -231,6 +263,8 @@ Algorithm</h3>
<p >Mathematical algorithms</p>
<p >for assert for io operations</p>
<p >Mathematical algorithms</p>
<p >for assert for M_PI definition and pow() for uint16_t datatype</p>
<p >Mathematical algorithms</p>
<p >Mathematical algorithms</p>
<p >for assert for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a> for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></p>
<p >Mathematical algorithms </p>
@@ -342,6 +376,38 @@ template&lt;typename T &gt; </div>
</div><!-- fragment -->
</div>
</div>
<a id="ad0acf82b7bc920182bf8322d1e103953" name="ad0acf82b7bc920182bf8322d1e103953"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0acf82b7bc920182bf8322d1e103953">&#9670;&nbsp;</a></span>circle_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::circle_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>radius</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>perimeter of a <a href="https://en.wikipedia.org/wiki/perimeter_of_a_circle" target="_blank">circle</a> (2 * pi * r) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">radius</td><td>is the radius of the circle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>perimeter of the circle </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 63</span> {</div>
<div class="line"><span class="lineno"> 64</span> <span class="keywordflow">return</span> 2 * M_PI * radius;</div>
<div class="line"><span class="lineno"> 65</span>}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a3fe35440c27758ecc2287e08217d63a7" name="a3fe35440c27758ecc2287e08217d63a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fe35440c27758ecc2287e08217d63a7">&#9670;&nbsp;</a></span>cone_volume()</h2>
@@ -435,6 +501,41 @@ template&lt;typename T &gt; </div>
</div><!-- fragment -->
</div>
</div>
<a id="a8998ca7b1886d1d7d00aef3b457a9b1b" name="a8998ca7b1886d1d7d00aef3b457a9b1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8998ca7b1886d1d7d00aef3b457a9b1b">&#9670;&nbsp;</a></span>cube_surface_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::cube_surface_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>length</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>surface perimeter of a <a href="https://en.wikipedia.org/wiki/Cube" target="_blank">cube</a> ( 12 </p>
<ul>
<li>l) <dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">length</td><td>is the length of the cube </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>surface perimeter of the cube </dd></dl>
</li>
</ul>
<div class="fragment"><div class="line"><span class="lineno"> 86</span> {</div>
<div class="line"><span class="lineno"> 87</span> <span class="keywordflow">return</span> 12 * length;</div>
<div class="line"><span class="lineno"> 88</span>}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ae413098478fa38acaac887b7654f0725" name="ae413098478fa38acaac887b7654f0725"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae413098478fa38acaac887b7654f0725">&#9670;&nbsp;</a></span>cube_volume()</h2>
@@ -520,6 +621,55 @@ Here is the call graph for this function:</div>
</div>
</div>
</div>
</div>
<a id="a1d4df7a4e43a2eac1acc0ac610487c73" name="a1d4df7a4e43a2eac1acc0ac610487c73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d4df7a4e43a2eac1acc0ac610487c73">&#9670;&nbsp;</a></span>cylinder_surface_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::cylinder_surface_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>radius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>height</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>surface perimeter of a <a href="https://en.wikipedia.org/wiki/Cylinder" target="_blank">cylinder</a> (2 * radius + 2 * height) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">radius</td><td>is the radius of the cylinder </td></tr>
<tr><td class="paramname">height</td><td>is the height of the cylinder </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>surface perimeter of the cylinder </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 111</span> {</div>
<div class="line"><span class="lineno"> 112</span> <span class="keywordflow">return</span> (2 * radius) + (2 * <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>);</div>
<div class="line"><span class="lineno"> 113</span>}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d47/namespacemath_a1d4df7a4e43a2eac1acc0ac610487c73_cgraph.svg" width="271" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="abde24398be43538c62e4a496968e60ca" name="abde24398be43538c62e4a496968e60ca"></a>
@@ -845,6 +995,49 @@ Here is the call graph for this function:</div>
</div>
</div>
</div>
</div>
<a id="aa8592c3279c41a2c6d4d64eeb488f63f" name="aa8592c3279c41a2c6d4d64eeb488f63f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8592c3279c41a2c6d4d64eeb488f63f">&#9670;&nbsp;</a></span>n_polygon_surface_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::n_polygon_surface_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>sides</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>surface perimeter of a <a href="https://www.cuemath.com/measurement/perimeter-of-polygon/" target="_blank">n-polygon</a> ( n * l) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">length</td><td>is the length of the polygon </td></tr>
<tr><td class="paramname">sides</td><td>is the number of sides of the polygon </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>surface perimeter of the polygon </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 99</span> {</div>
<div class="line"><span class="lineno"> 100</span> <span class="keywordflow">return</span> sides * length;</div>
<div class="line"><span class="lineno"> 101</span>}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a5de184925e68658f15415dd53954df4f" name="a5de184925e68658f15415dd53954df4f"></a>
@@ -894,6 +1087,55 @@ Here is the call graph for this function:</div>
</div>
</div>
</div>
</div>
<a id="a0efb235330ff48e14fd31faaccbcebb3" name="a0efb235330ff48e14fd31faaccbcebb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0efb235330ff48e14fd31faaccbcebb3">&#9670;&nbsp;</a></span>parallelogram_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::parallelogram_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>height</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>perimeter of a <a href="https://en.wikipedia.org/wiki/Parallelogram" target="_blank">parallelogram</a> 2(b + h) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">base</td><td>is the length of the bottom side of the parallelogram </td></tr>
<tr><td class="paramname">height</td><td>is the length of the tallest point in the parallelogram </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>perimeter of the parallelogram </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 75</span> {</div>
<div class="line"><span class="lineno"> 76</span> <span class="keywordflow">return</span> 2 * (base + <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>);</div>
<div class="line"><span class="lineno"> 77</span>}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d47/namespacemath_a0efb235330ff48e14fd31faaccbcebb3_cgraph.svg" width="252" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="afcd07701d73ed65cd616bcba02737f3d" name="afcd07701d73ed65cd616bcba02737f3d"></a>
@@ -1120,6 +1362,49 @@ template&lt;typename T &gt; </div>
</div><!-- fragment -->
</div>
</div>
<a id="a428769a16e9525e56588d7c7709d25a6" name="a428769a16e9525e56588d7c7709d25a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a428769a16e9525e56588d7c7709d25a6">&#9670;&nbsp;</a></span>rect_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::rect_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>width</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>perimeter of a <a href="https://en.wikipedia.org/wiki/Rectangle" target="_blank">rectangle</a> ( 2(l + w) ) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">length</td><td>is the length of the rectangle </td></tr>
<tr><td class="paramname">width</td><td>is the width of the rectangle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>perimeter of the rectangle </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 40</span> {</div>
<div class="line"><span class="lineno"> 41</span> <span class="keywordflow">return</span> 2 * (length + width);</div>
<div class="line"><span class="lineno"> 42</span>}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a3fdc74c24697ec5bb5c3698c96117c12" name="a3fdc74c24697ec5bb5c3698c96117c12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fdc74c24697ec5bb5c3698c96117c12">&#9670;&nbsp;</a></span>rect_prism_volume()</h2>
@@ -1289,6 +1574,38 @@ template&lt;typename T &gt; </div>
</div><!-- fragment -->
</div>
</div>
<a id="a9236348755183644f1225e162d01ab14" name="a9236348755183644f1225e162d01ab14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9236348755183644f1225e162d01ab14">&#9670;&nbsp;</a></span>square_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::square_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>length</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>perimeter of a <a href="https://en.wikipedia.org/wiki/Square" target="_blank">square</a> (4 * l) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">length</td><td>is the length of the square </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>perimeter of square </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 28</span> {</div>
<div class="line"><span class="lineno"> 29</span> <span class="keywordflow">return</span> 4 * length;</div>
<div class="line"><span class="lineno"> 30</span>}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a50936ee98f4d40f17823befc65a32aec" name="a50936ee98f4d40f17823befc65a32aec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50936ee98f4d40f17823befc65a32aec">&#9670;&nbsp;</a></span>test_eval()</h2>
@@ -1384,6 +1701,61 @@ Here is the call graph for this function:</div>
</div>
</div>
</div>
</div>
<a id="a3d1e4db743b189f309327572663415f3" name="a3d1e4db743b189f309327572663415f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d1e4db743b189f309327572663415f3">&#9670;&nbsp;</a></span>triangle_perimeter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">T math::triangle_perimeter </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>hypotenuse</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>perimeter of a <a href="https://en.wikipedia.org/wiki/Triangle" target="_blank">triangle</a> (a + b + c) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">base</td><td>is the length of the bottom side of the triangle </td></tr>
<tr><td class="paramname">height</td><td>is the length of the tallest point in the triangle </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>perimeter of the triangle </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 52</span> {</div>
<div class="line"><span class="lineno"> 53</span> <span class="keywordflow">return</span> base + <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a> + hypotenuse;</div>
<div class="line"><span class="lineno"> 54</span>}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d47/namespacemath_a3d1e4db743b189f309327572663415f3_cgraph.svg" width="279" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a2d704a7b72a6b2db8b76c8581b577b2c" name="a2d704a7b72a6b2db8b76c8581b577b2c"></a>

View File

@@ -31,26 +31,34 @@ var namespacemath =
[ "approximate_pi", "dd/d47/namespacemath.html#abf7f2a6d91f1ca6c89698792aea3f188", null ],
[ "binomialCoeffSum", "dd/d47/namespacemath.html#ae1ca505751f5a6d3977b86372cfe75ea", null ],
[ "circle_area", "dd/d47/namespacemath.html#a40e36c67da78d2131408c57ee091ad75", null ],
[ "circle_perimeter", "dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953", null ],
[ "cone_volume", "dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7", null ],
[ "cube_surface_area", "dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c", null ],
[ "cube_surface_perimeter", "dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b", null ],
[ "cube_volume", "dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725", null ],
[ "cylinder_surface_area", "dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864", null ],
[ "cylinder_surface_perimeter", "dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73", null ],
[ "cylinder_volume", "dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca", null ],
[ "integral_approx", "dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11", null ],
[ "largestPower", "dd/d47/namespacemath.html#afa39ec943a4836c878e1614fd89b146f", null ],
[ "lcmSum", "dd/d47/namespacemath.html#a04065193d190d605e1f0d0d93a87e244", null ],
[ "magic_number", "dd/d47/namespacemath.html#a8d8e81a7cd59644b311ef9adb268f5f0", null ],
[ "n_choose_r", "dd/d47/namespacemath.html#a6e2dff75c5de70455b90c799d6ad6967", null ],
[ "n_polygon_surface_perimeter", "dd/d47/namespacemath.html#aa8592c3279c41a2c6d4d64eeb488f63f", null ],
[ "parallelogram_area", "dd/d47/namespacemath.html#a5de184925e68658f15415dd53954df4f", null ],
[ "parallelogram_perimeter", "dd/d47/namespacemath.html#a0efb235330ff48e14fd31faaccbcebb3", null ],
[ "power", "dd/d47/namespacemath.html#afcd07701d73ed65cd616bcba02737f3d", null ],
[ "power_of_two", "dd/d47/namespacemath.html#a89ab7d6c3e3ee72a8cbaa85127986185", null ],
[ "pyramid_volume", "dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c", null ],
[ "rect_area", "dd/d47/namespacemath.html#ab31d141f7c5b551746b1eee0eb4dedca", null ],
[ "rect_perimeter", "dd/d47/namespacemath.html#a428769a16e9525e56588d7c7709d25a6", null ],
[ "rect_prism_volume", "dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12", null ],
[ "sphere_surface_area", "dd/d47/namespacemath.html#ab7f29862d30df351c317eedd60a0c656", null ],
[ "sphere_volume", "dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551", null ],
[ "square_area", "dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049", null ],
[ "square_perimeter", "dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14", null ],
[ "test_eval", "dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec", null ],
[ "triangle_area", "dd/d47/namespacemath.html#ab3b920cc56442abd92279ba23b50f4dc", null ],
[ "triangle_perimeter", "dd/d47/namespacemath.html#a3d1e4db743b189f309327572663415f3", null ],
[ "triangle_prism_volume", "dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c", null ]
];

View File

@@ -0,0 +1,4 @@
<map id="math::parallelogram_perimeter" name="math::parallelogram_perimeter">
<area shape="rect" id="node1" title="perimeter of a parallelogram 2(b + h)" alt="" coords="5,5,141,47"/>
<area shape="rect" id="node2" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="189,13,247,39"/>
</map>

View File

@@ -0,0 +1 @@
7f3cacf04b54b7c36f858972fb47e399

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: math::parallelogram_perimeter Pages: 1 -->
<svg width="189pt" height="39pt"
viewBox="0.00 0.00 189.00 39.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 35)">
<title>math::parallelogram_perimeter</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-35 185,-35 185,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="perimeter of a parallelogram 2(b + h)">
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-30.5 102,-30.5 102,-0.5 0,-0.5"/>
<text text-anchor="start" x="8" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::parallelogram</text>
<text text-anchor="middle" x="51" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_perimeter</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="138,-6 138,-25 181,-25 181,-6 138,-6"/>
<text text-anchor="middle" x="159.5" y="-13" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M102.13,-15.5C110.91,-15.5 119.8,-15.5 127.85,-15.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="127.86,-19 137.86,-15.5 127.86,-12 127.86,-19"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,4 @@
<map id="math::cylinder_surface_perimeter" name="math::cylinder_surface_perimeter">
<area shape="rect" id="node1" title="surface perimeter of a cylinder (2 * radius + 2 * height)" alt="" coords="5,5,160,47"/>
<area shape="rect" id="node2" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="208,13,265,39"/>
</map>

View File

@@ -0,0 +1 @@
388d518f0df49d91cf3bf730fe04f24b

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: math::cylinder_surface_perimeter Pages: 1 -->
<svg width="203pt" height="39pt"
viewBox="0.00 0.00 203.00 39.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 35)">
<title>math::cylinder_surface_perimeter</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-35 199,-35 199,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="surface perimeter of a cylinder (2 * radius + 2 * height)">
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-30.5 116,-30.5 116,-0.5 0,-0.5"/>
<text text-anchor="start" x="8" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cylinder_surface</text>
<text text-anchor="middle" x="58" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">_perimeter</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="152,-6 152,-25 195,-25 195,-6 152,-6"/>
<text text-anchor="middle" x="173.5" y="-13" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M116.08,-15.5C124.89,-15.5 133.68,-15.5 141.62,-15.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="141.83,-19 151.83,-15.5 141.83,-12 141.83,-19"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,4 @@
<map id="math::triangle_perimeter" name="math::triangle_perimeter">
<area shape="rect" id="node1" title="perimeter of a triangle (a + b + c)" alt="" coords="5,5,168,32"/>
<area shape="rect" id="node2" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="216,5,273,32"/>
</map>

View File

@@ -0,0 +1 @@
75c8fb9f51e7c282c2ba5bf8076cccfd

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: math::triangle_perimeter Pages: 1 -->
<svg width="209pt" height="28pt"
viewBox="0.00 0.00 209.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 24)">
<title>math::triangle_perimeter</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 205,-24 205,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="perimeter of a triangle (a + b + c)">
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 122,-19.5 122,-0.5 0,-0.5"/>
<text text-anchor="middle" x="61" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::triangle_perimeter</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="158,-0.5 158,-19.5 201,-19.5 201,-0.5 158,-0.5"/>
<text text-anchor="middle" x="179.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M122.3,-10C131.08,-10 139.79,-10 147.65,-10"/>
<polygon fill="midnightblue" stroke="midnightblue" points="147.75,-13.5 157.75,-10 147.75,-6.5 147.75,-13.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB