Documentation for 050c99eb0a

This commit is contained in:
github-actions
2021-10-26 07:58:29 +00:00
parent 3813662f94
commit 2f1a1d8f38
81 changed files with 3057 additions and 1331 deletions

364
da/d39/volume_8cpp.html Normal file
View File

@@ -0,0 +1,364 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: math/volume.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('da/d39/volume_8cpp.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">volume.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Implmentations for the <a href="https://en.wikipedia.org/wiki/Volume" target="_blank">volume</a> of various 3D shapes.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;cstdint&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for volume.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d5e/volume_8cpp__incl.svg" width="342" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:dd/d47/namespacemath"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html">math</a></td></tr>
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft">&#160;</td><td class="mdescRight">for M_PI definition and pow() <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae413098478fa38acaac887b7654f0725"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ae413098478fa38acaac887b7654f0725"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725">math::cube_volume</a> (T length)</td></tr>
<tr class="memdesc:ae413098478fa38acaac887b7654f0725"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Cube" target="_blank">cube</a> <a href="../../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725">More...</a><br /></td></tr>
<tr class="separator:ae413098478fa38acaac887b7654f0725"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fdc74c24697ec5bb5c3698c96117c12"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3fdc74c24697ec5bb5c3698c96117c12"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12">math::rect_prism_volume</a> (T length, T width, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>)</td></tr>
<tr class="memdesc:a3fdc74c24697ec5bb5c3698c96117c12"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Cuboid" target="_blank">rectangular</a> prism. <a href="../../dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12">More...</a><br /></td></tr>
<tr class="separator:a3fdc74c24697ec5bb5c3698c96117c12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fe35440c27758ecc2287e08217d63a7"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3fe35440c27758ecc2287e08217d63a7"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7">math::cone_volume</a> (T radius, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>, double PI=3.14)</td></tr>
<tr class="memdesc:a3fe35440c27758ecc2287e08217d63a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Cone" target="_blank">cone</a> <a href="../../dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7">More...</a><br /></td></tr>
<tr class="separator:a3fe35440c27758ecc2287e08217d63a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d704a7b72a6b2db8b76c8581b577b2c"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a2d704a7b72a6b2db8b76c8581b577b2c"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c">math::triangle_prism_volume</a> (T base, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>, T depth)</td></tr>
<tr class="memdesc:a2d704a7b72a6b2db8b76c8581b577b2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Triangular_prism" target="_blank">triangular</a> prism. <a href="../../dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c">More...</a><br /></td></tr>
<tr class="separator:a2d704a7b72a6b2db8b76c8581b577b2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94db02b3c9e55a69ac1696f30e2f761c"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a94db02b3c9e55a69ac1696f30e2f761c"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c">math::pyramid_volume</a> (T length, T width, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>)</td></tr>
<tr class="memdesc:a94db02b3c9e55a69ac1696f30e2f761c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Pyramid_(geometry)" target="_blank">pyramid</a> <a href="../../dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c">More...</a><br /></td></tr>
<tr class="separator:a94db02b3c9e55a69ac1696f30e2f761c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34d66a77c19ce9b8b3a3d14352b34551"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a34d66a77c19ce9b8b3a3d14352b34551"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551">math::sphere_volume</a> (T radius, double PI=3.14)</td></tr>
<tr class="memdesc:a34d66a77c19ce9b8b3a3d14352b34551"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Sphere" target="_blank">sphere</a> <a href="../../dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551">More...</a><br /></td></tr>
<tr class="separator:a34d66a77c19ce9b8b3a3d14352b34551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abde24398be43538c62e4a496968e60ca"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:abde24398be43538c62e4a496968e60ca"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca">math::cylinder_volume</a> (T radius, T <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>, double PI=3.14)</td></tr>
<tr class="memdesc:abde24398be43538c62e4a496968e60ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">The volume of a <a href="https://en.wikipedia.org/wiki/Cylinder" target="_blank">cylinder</a> <a href="../../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca">More...</a><br /></td></tr>
<tr class="separator:abde24398be43538c62e4a496968e60ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-test implementations. <a href="../../da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">More...</a><br /></td></tr>
<tr class="separator:aa8dca7b867074164d5f45b0f3851269d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d39/volume_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <a href="../../da/d39/volume_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br /></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Implmentations for the <a href="https://en.wikipedia.org/wiki/Volume" target="_blank">volume</a> of various 3D shapes. </p>
<p >The volume of a 3D shape is the amount of 3D space that the shape takes up. All shapes have a formula to get the volume of any given shape. These implementations support multiple return types.</p>
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/Focusucof" target="_blank">Focusucof</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&nbsp;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> {</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <a class="code hl_function" href="../../da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementations</span></div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span>}</div>
<div class="ttc" id="avolume_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition:</b> volume.cpp:112</div></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="../../da/d39/volume_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="494" height="408"><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="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">&#9670;&nbsp;</a></span>test()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void test </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Self-test implementations. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> {</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="comment">// Input variables</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> uint32_t int_length = 0; <span class="comment">// 32 bit integer length input</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> uint32_t int_width = 0; <span class="comment">// 32 bit integer width input</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> uint32_t int_base = 0; <span class="comment">// 32 bit integer base input</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> uint32_t int_height = 0; <span class="comment">// 32 bit integer height input</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> uint32_t int_depth = 0; <span class="comment">// 32 bit integer depth input</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordtype">double</span> double_radius = NAN; <span class="comment">// double radius input</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordtype">double</span> double_height = NAN; <span class="comment">// double height input</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// Output variables</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> uint32_t int_expected = 0; <span class="comment">// 32 bit integer expected output</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> uint32_t int_volume = 0; <span class="comment">// 32 bit integer output</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordtype">double</span> double_expected = NAN; <span class="comment">// double expected output</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordtype">double</span> double_volume = NAN; <span class="comment">// double output</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="comment">// 1st test</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> int_length = 5;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> int_expected = 125;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> int_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725">math::cube_volume</a>(int_length);</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A CUBE&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Length: &quot;</span> &lt;&lt; int_length &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; int_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; int_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> assert(int_volume == int_expected);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// 2nd test</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> int_length = 4;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> int_width = 3;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> int_height = 5;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> int_expected = 60;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> int_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12">math::rect_prism_volume</a>(int_length, int_width, int_height);</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A RECTANGULAR PRISM&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Length: &quot;</span> &lt;&lt; int_length &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Width: &quot;</span> &lt;&lt; int_width &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Height: &quot;</span> &lt;&lt; int_height &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; int_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; int_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> assert(int_volume == int_expected);</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// 3rd test</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> double_radius = 5;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> double_height = 7;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> double_expected = 183.16666666666666; <span class="comment">// truncated to 14 decimal places</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> double_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7">math::cone_volume</a>(double_radius, double_height);</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A CONE&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Radius: &quot;</span> &lt;&lt; double_radius &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Height: &quot;</span> &lt;&lt; double_height &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; double_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; double_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> assert(double_volume == double_expected);</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="comment">// 4th test</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> int_base = 3;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> int_height = 4;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> int_depth = 5;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> int_expected = 30;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> int_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c">math::triangle_prism_volume</a>(int_base, int_height, int_depth);</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A TRIANGULAR PRISM&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Base: &quot;</span> &lt;&lt; int_base &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Height: &quot;</span> &lt;&lt; int_height &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Depth: &quot;</span> &lt;&lt; int_depth &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; int_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; int_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> assert(int_volume == int_expected);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="comment">// 5th test</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> int_length = 10;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> int_width = 3;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> int_height = 5;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> int_expected = 50;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> int_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c">math::pyramid_volume</a>(int_length, int_width, int_height);</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A PYRAMID&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Length: &quot;</span> &lt;&lt; int_length &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Width: &quot;</span> &lt;&lt; int_width &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Height: &quot;</span> &lt;&lt; int_height &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; int_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; int_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> assert(int_volume == int_expected);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> </div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <span class="comment">// 6th test</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> double_radius = 3;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> double_expected = 113.04;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> double_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551">math::sphere_volume</a>(double_radius);</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A SPHERE&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Radius: &quot;</span> &lt;&lt; double_radius &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; double_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; double_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> assert(double_volume == double_expected);</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="comment">// 7th test</span></div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> double_radius = 5;</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> double_height = 2;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> double_expected = 157;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> double_volume = <a class="code hl_function" href="../../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca">math::cylinder_volume</a>(double_radius, double_height);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;VOLUME OF A CYLINDER&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Radius: &quot;</span> &lt;&lt; double_radius &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Input Height: &quot;</span> &lt;&lt; double_height &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Expected Output: &quot;</span> &lt;&lt; double_expected &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Output: &quot;</span> &lt;&lt; double_volume &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> assert(double_volume == double_expected);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;TEST PASSED&quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span>}</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
<div class="ttc" id="anamespacemath_html_a2d704a7b72a6b2db8b76c8581b577b2c"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c">math::triangle_prism_volume</a></div><div class="ttdeci">T triangle_prism_volume(T base, T height, T depth)</div><div class="ttdoc">The volume of a triangular prism.</div><div class="ttdef"><b>Definition:</b> volume.cpp:67</div></div>
<div class="ttc" id="anamespacemath_html_a34d66a77c19ce9b8b3a3d14352b34551"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551">math::sphere_volume</a></div><div class="ttdeci">T sphere_volume(T radius, double PI=3.14)</div><div class="ttdoc">The volume of a sphere</div><div class="ttdef"><b>Definition:</b> volume.cpp:91</div></div>
<div class="ttc" id="anamespacemath_html_a3fdc74c24697ec5bb5c3698c96117c12"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12">math::rect_prism_volume</a></div><div class="ttdeci">T rect_prism_volume(T length, T width, T height)</div><div class="ttdoc">The volume of a rectangular prism.</div><div class="ttdef"><b>Definition:</b> volume.cpp:41</div></div>
<div class="ttc" id="anamespacemath_html_a3fe35440c27758ecc2287e08217d63a7"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7">math::cone_volume</a></div><div class="ttdeci">T cone_volume(T radius, T height, double PI=3.14)</div><div class="ttdoc">The volume of a cone</div><div class="ttdef"><b>Definition:</b> volume.cpp:53</div></div>
<div class="ttc" id="anamespacemath_html_a94db02b3c9e55a69ac1696f30e2f761c"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c">math::pyramid_volume</a></div><div class="ttdeci">T pyramid_volume(T length, T width, T height)</div><div class="ttdoc">The volume of a pyramid</div><div class="ttdef"><b>Definition:</b> volume.cpp:80</div></div>
<div class="ttc" id="anamespacemath_html_abde24398be43538c62e4a496968e60ca"><div class="ttname"><a href="../../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca">math::cylinder_volume</a></div><div class="ttdeci">T cylinder_volume(T radius, T height, double PI=3.14)</div><div class="ttdoc">The volume of a cylinder</div><div class="ttdef"><b>Definition:</b> volume.cpp:103</div></div>
<div class="ttc" id="anamespacemath_html_ae413098478fa38acaac887b7654f0725"><div class="ttname"><a href="../../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725">math::cube_volume</a></div><div class="ttdeci">T cube_volume(T length)</div><div class="ttdoc">The volume of a cube</div><div class="ttdef"><b>Definition:</b> volume.cpp:28</div></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="../../da/d39/volume_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="395" height="408"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_296d53ceaeaa7e099814a6def439fe8a.html">math</a></li><li class="navelem"><a class="el" href="../../da/d39/volume_8cpp.html">volume.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
</ul>
</div>
</body>
</html>

12
da/d39/volume_8cpp.js vendored Normal file
View File

@@ -0,0 +1,12 @@
var volume_8cpp =
[
[ "cone_volume", "da/d39/volume_8cpp.html#a3fe35440c27758ecc2287e08217d63a7", null ],
[ "cube_volume", "da/d39/volume_8cpp.html#ae413098478fa38acaac887b7654f0725", null ],
[ "cylinder_volume", "da/d39/volume_8cpp.html#abde24398be43538c62e4a496968e60ca", null ],
[ "main", "da/d39/volume_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
[ "pyramid_volume", "da/d39/volume_8cpp.html#a94db02b3c9e55a69ac1696f30e2f761c", null ],
[ "rect_prism_volume", "da/d39/volume_8cpp.html#a3fdc74c24697ec5bb5c3698c96117c12", null ],
[ "sphere_volume", "da/d39/volume_8cpp.html#a34d66a77c19ce9b8b3a3d14352b34551", null ],
[ "test", "da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ],
[ "triangle_prism_volume", "da/d39/volume_8cpp.html#a2d704a7b72a6b2db8b76c8581b577b2c", null ]
];

View File

@@ -0,0 +1,13 @@
<map id="test" name="test">
<area shape="rect" id="node1" title="Self&#45;test implementations." alt="" coords="5,199,49,225"/>
<area shape="rect" id="node2" href="$dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7" title="The volume of a cone" alt="" coords="114,173,253,200"/>
<area shape="rect" id="node5" href="$dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725" title="The volume of a cube" alt="" coords="114,275,253,301"/>
<area shape="rect" id="node6" href="$dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca" title="The volume of a cylinder" alt="" coords="105,224,261,251"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="147,376,219,403"/>
<area shape="rect" id="node8" href="$dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c" title="The volume of a pyramid" alt="" coords="105,5,262,32"/>
<area shape="rect" id="node9" href="$dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12" title="The volume of a rectangular prism." alt="" coords="97,56,269,83"/>
<area shape="rect" id="node10" href="$dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551" title="The volume of a sphere" alt="" coords="108,325,259,352"/>
<area shape="rect" id="node11" href="$dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c" title="The volume of a triangular prism." alt="" coords="112,107,255,149"/>
<area shape="rect" id="node3" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="324,115,383,141"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/pow.html#" title=" " alt="" coords="317,249,389,276"/>
</map>

View File

@@ -0,0 +1 @@
7b0fda5c9a3d29d4ea02d6d8c733dd11

View File

@@ -0,0 +1,215 @@
<?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.49.2 (20211016.1639)
-->
<!-- Title: test Pages: 1 -->
<svg width="296pt" height="306pt"
viewBox="0.00 0.00 296.00 306.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 302)">
<title>test</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-302 292,-302 292,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Self&#45;test implementations.">
<polygon fill="#bfbfbf" stroke="black" points="0,-133.5 0,-152.5 33,-152.5 33,-133.5 0,-133.5"/>
<text text-anchor="middle" x="16.5" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7" target="_top" xlink:title="The volume of a cone">
<polygon fill="white" stroke="black" points="81.5,-152.5 81.5,-171.5 185.5,-171.5 185.5,-152.5 81.5,-152.5"/>
<text text-anchor="middle" x="133.5" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cone_volume</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="M33.01,-145.56C43.17,-147.24 57.18,-149.56 71.48,-151.92"/>
<polygon fill="midnightblue" stroke="midnightblue" points="70.95,-155.38 81.38,-153.55 72.09,-148.47 70.95,-155.38"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725" target="_top" xlink:title="The volume of a cube">
<polygon fill="white" stroke="black" points="81.5,-76.5 81.5,-95.5 185.5,-95.5 185.5,-76.5 81.5,-76.5"/>
<text text-anchor="middle" x="133.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cube_volume</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M28.22,-133.35C38.16,-124.84 53.69,-112.65 69,-105 73.52,-102.74 78.35,-100.7 83.26,-98.87"/>
<polygon fill="midnightblue" stroke="midnightblue" points="84.42,-102.17 92.73,-95.6 82.14,-95.56 84.42,-102.17"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca" target="_top" xlink:title="The volume of a cylinder">
<polygon fill="white" stroke="black" points="75,-114.5 75,-133.5 192,-133.5 192,-114.5 75,-114.5"/>
<text text-anchor="middle" x="133.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cylinder_volume</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M33.01,-140.44C41.58,-139.02 52.9,-137.15 64.81,-135.18"/>
<polygon fill="midnightblue" stroke="midnightblue" points="65.62,-138.6 74.91,-133.51 64.48,-131.69 65.62,-138.6"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="106.5,-0.5 106.5,-19.5 160.5,-19.5 160.5,-0.5 106.5,-0.5"/>
<text text-anchor="middle" x="133.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node1&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M19.06,-133.45C23.13,-111.63 36.14,-57.74 69,-29 76.65,-22.31 86.58,-17.97 96.31,-15.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="97.37,-18.51 106.26,-12.75 95.72,-11.71 97.37,-18.51"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c" target="_top" xlink:title="The volume of a pyramid">
<polygon fill="white" stroke="black" points="74.5,-278.5 74.5,-297.5 192.5,-297.5 192.5,-278.5 74.5,-278.5"/>
<text text-anchor="middle" x="133.5" y="-285.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::pyramid_volume</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node1&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M18.64,-152.82C21.9,-176.43 33.47,-236.77 69,-269 70.73,-270.57 72.59,-272.01 74.54,-273.33"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.16,-276.57 83.6,-278.4 76.58,-270.46 73.16,-276.57"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12" target="_top" xlink:title="The volume of a rectangular prism.">
<polygon fill="white" stroke="black" points="69,-240.5 69,-259.5 198,-259.5 198,-240.5 69,-240.5"/>
<text text-anchor="middle" x="133.5" y="-247.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::rect_prism_volume</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node9 -->
<g id="edge12" class="edge">
<title>Node1&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M20.44,-152.53C26.51,-170.59 42.14,-209.89 69,-231 71.41,-232.89 74.01,-234.6 76.72,-236.14"/>
<polygon fill="midnightblue" stroke="midnightblue" points="75.21,-239.29 85.74,-240.49 78.25,-232.99 75.21,-239.29"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551" target="_top" xlink:title="The volume of a sphere">
<polygon fill="white" stroke="black" points="77,-38.5 77,-57.5 190,-57.5 190,-38.5 77,-38.5"/>
<text text-anchor="middle" x="133.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::sphere_volume</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge14" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M21.47,-133.26C28.57,-117.06 44.97,-84.63 69,-67 71.64,-65.06 74.49,-63.32 77.45,-61.75"/>
<polygon fill="midnightblue" stroke="midnightblue" points="78.99,-64.9 86.63,-57.56 76.08,-58.53 78.99,-64.9"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a xlink:href="../../dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c" target="_top" xlink:title="The volume of a triangular prism.">
<polygon fill="white" stroke="black" points="80,-191 80,-221 187,-221 187,-191 80,-191"/>
<text text-anchor="start" x="88" y="-209" font-family="Helvetica,sans-Serif" font-size="10.00">math::triangle_prism</text>
<text text-anchor="middle" x="133.5" y="-198" font-family="Helvetica,sans-Serif" font-size="10.00">_volume</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node11 -->
<g id="edge16" class="edge">
<title>Node1&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M28.78,-152.67C38.84,-160.96 54.22,-172.82 69,-181 72.67,-183.03 76.55,-184.98 80.49,-186.83"/>
<polygon fill="midnightblue" stroke="midnightblue" points="79.22,-190.1 89.78,-190.96 82.06,-183.7 79.22,-190.1"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="239,-196.5 239,-215.5 283,-215.5 283,-196.5 239,-196.5"/>
<text text-anchor="middle" x="261" y="-203.5" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M168.63,-171.58C178.19,-174.43 188.55,-177.69 198,-181 208.35,-184.63 219.51,-188.98 229.47,-193.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="228.37,-196.37 238.95,-196.95 231.04,-189.9 228.37,-196.37"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/pow.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="234,-95.5 234,-114.5 288,-114.5 288,-95.5 234,-95.5"/>
<text text-anchor="middle" x="261" y="-102.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::pow</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M172.36,-152.43C180.94,-149.77 189.91,-146.62 198,-143 212.01,-136.74 226.68,-127.86 238.24,-120.26"/>
<polygon fill="midnightblue" stroke="midnightblue" points="240.43,-123 246.77,-114.51 236.52,-117.2 240.43,-123"/>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge5" class="edge">
<title>Node5&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M185.55,-93.73C198.35,-95.67 211.83,-97.71 223.75,-99.51"/>
<polygon fill="midnightblue" stroke="midnightblue" points="223.36,-102.99 233.77,-101.03 224.4,-96.07 223.36,-102.99"/>
</g>
<!-- Node6&#45;&gt;Node3 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M177.1,-133.5C184.35,-136.02 191.59,-139.14 198,-143 217.6,-154.8 235.39,-174.22 246.84,-188.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="244.19,-190.68 253.11,-196.41 249.71,-186.37 244.19,-190.68"/>
</g>
<!-- Node6&#45;&gt;Node4 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M192.11,-115.28C202.92,-113.64 213.93,-111.97 223.85,-110.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="224.38,-113.93 233.75,-108.97 223.33,-107.01 224.38,-113.93"/>
</g>
<!-- Node8&#45;&gt;Node3 -->
<g id="edge11" class="edge">
<title>Node8&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M177.1,-278.5C184.35,-275.98 191.59,-272.86 198,-269 217.6,-257.2 235.39,-237.78 246.84,-223.62"/>
<polygon fill="midnightblue" stroke="midnightblue" points="249.71,-225.63 253.11,-215.59 244.19,-221.32 249.71,-225.63"/>
</g>
<!-- Node9&#45;&gt;Node3 -->
<g id="edge13" class="edge">
<title>Node9&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M168.63,-240.42C178.19,-237.57 188.55,-234.31 198,-231 208.35,-227.37 219.51,-223.02 229.47,-218.97"/>
<polygon fill="midnightblue" stroke="midnightblue" points="231.04,-222.1 238.95,-215.05 228.37,-215.63 231.04,-222.1"/>
</g>
<!-- Node10&#45;&gt;Node4 -->
<g id="edge15" class="edge">
<title>Node10&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M172.36,-57.57C180.94,-60.23 189.91,-63.38 198,-67 212.01,-73.26 226.68,-82.14 238.24,-89.74"/>
<polygon fill="midnightblue" stroke="midnightblue" points="236.52,-92.8 246.77,-95.49 240.43,-87 236.52,-92.8"/>
</g>
<!-- Node11&#45;&gt;Node3 -->
<g id="edge17" class="edge">
<title>Node11&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M187.36,-206C201.35,-206 216.01,-206 228.47,-206"/>
<polygon fill="midnightblue" stroke="midnightblue" points="228.78,-209.5 238.78,-206 228.78,-202.5 228.78,-209.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,14 @@
<map id="main" name="main">
<area shape="rect" id="node1" title="Main function." alt="" coords="5,199,56,225"/>
<area shape="rect" id="node2" href="$da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self&#45;test implementations." alt="" coords="104,199,148,225"/>
<area shape="rect" id="node3" href="$dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7" title="The volume of a cone" alt="" coords="213,173,351,200"/>
<area shape="rect" id="node6" href="$dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725" title="The volume of a cube" alt="" coords="213,275,351,301"/>
<area shape="rect" id="node7" href="$dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca" title="The volume of a cylinder" alt="" coords="204,224,360,251"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="246,376,318,403"/>
<area shape="rect" id="node9" href="$dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c" title="The volume of a pyramid" alt="" coords="203,5,361,32"/>
<area shape="rect" id="node10" href="$dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12" title="The volume of a rectangular prism." alt="" coords="196,56,368,83"/>
<area shape="rect" id="node11" href="$dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551" title="The volume of a sphere" alt="" coords="207,325,357,352"/>
<area shape="rect" id="node12" href="$dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c" title="The volume of a triangular prism." alt="" coords="211,107,353,149"/>
<area shape="rect" id="node4" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="423,115,481,141"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/numeric/math/pow.html#" title=" " alt="" coords="416,249,488,276"/>
</map>

View File

@@ -0,0 +1 @@
cd656c3a4ac5bc77f63aec69e49a99fe

View File

@@ -0,0 +1,230 @@
<?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.49.2 (20211016.1639)
-->
<!-- Title: main Pages: 1 -->
<svg width="370pt" height="306pt"
viewBox="0.00 0.00 370.00 306.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 302)">
<title>main</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-302 366,-302 366,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#bfbfbf" stroke="black" points="0,-133.5 0,-152.5 38,-152.5 38,-133.5 0,-133.5"/>
<text text-anchor="middle" x="19" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../da/d39/volume_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;test implementations.">
<polygon fill="white" stroke="black" points="74,-133.5 74,-152.5 107,-152.5 107,-133.5 74,-133.5"/>
<text text-anchor="middle" x="90.5" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">test</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="M38.26,-143C46.07,-143 55.31,-143 63.79,-143"/>
<polygon fill="midnightblue" stroke="midnightblue" points="63.95,-146.5 73.95,-143 63.95,-139.5 63.95,-146.5"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7" target="_top" xlink:title="The volume of a cone">
<polygon fill="white" stroke="black" points="155.5,-152.5 155.5,-171.5 259.5,-171.5 259.5,-152.5 155.5,-152.5"/>
<text text-anchor="middle" x="207.5" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cone_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M107.01,-145.56C117.17,-147.24 131.18,-149.56 145.48,-151.92"/>
<polygon fill="midnightblue" stroke="midnightblue" points="144.95,-155.38 155.38,-153.55 146.09,-148.47 144.95,-155.38"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725" target="_top" xlink:title="The volume of a cube">
<polygon fill="white" stroke="black" points="155.5,-76.5 155.5,-95.5 259.5,-95.5 259.5,-76.5 155.5,-76.5"/>
<text text-anchor="middle" x="207.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cube_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node2&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M102.22,-133.35C112.16,-124.84 127.69,-112.65 143,-105 147.52,-102.74 152.35,-100.7 157.26,-98.87"/>
<polygon fill="midnightblue" stroke="midnightblue" points="158.42,-102.17 166.73,-95.6 156.14,-95.56 158.42,-102.17"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca" target="_top" xlink:title="The volume of a cylinder">
<polygon fill="white" stroke="black" points="149,-114.5 149,-133.5 266,-133.5 266,-114.5 149,-114.5"/>
<text text-anchor="middle" x="207.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::cylinder_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node7 -->
<g id="edge7" class="edge">
<title>Node2&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M107.01,-140.44C115.58,-139.02 126.9,-137.15 138.81,-135.18"/>
<polygon fill="midnightblue" stroke="midnightblue" points="139.62,-138.6 148.91,-133.51 138.48,-131.69 139.62,-138.6"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="180.5,-0.5 180.5,-19.5 234.5,-19.5 234.5,-0.5 180.5,-0.5"/>
<text text-anchor="middle" x="207.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node2&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M93.06,-133.45C97.13,-111.63 110.14,-57.74 143,-29 150.65,-22.31 160.58,-17.97 170.31,-15.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="171.37,-18.51 180.26,-12.75 169.72,-11.71 171.37,-18.51"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c" target="_top" xlink:title="The volume of a pyramid">
<polygon fill="white" stroke="black" points="148.5,-278.5 148.5,-297.5 266.5,-297.5 266.5,-278.5 148.5,-278.5"/>
<text text-anchor="middle" x="207.5" y="-285.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::pyramid_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node9 -->
<g id="edge11" class="edge">
<title>Node2&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M92.64,-152.82C95.9,-176.43 107.47,-236.77 143,-269 144.73,-270.57 146.59,-272.01 148.54,-273.33"/>
<polygon fill="midnightblue" stroke="midnightblue" points="147.16,-276.57 157.6,-278.4 150.58,-270.46 147.16,-276.57"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12" target="_top" xlink:title="The volume of a rectangular prism.">
<polygon fill="white" stroke="black" points="143,-240.5 143,-259.5 272,-259.5 272,-240.5 143,-240.5"/>
<text text-anchor="middle" x="207.5" y="-247.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::rect_prism_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node10 -->
<g id="edge13" class="edge">
<title>Node2&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M94.44,-152.53C100.51,-170.59 116.14,-209.89 143,-231 145.41,-232.89 148.01,-234.6 150.72,-236.14"/>
<polygon fill="midnightblue" stroke="midnightblue" points="149.21,-239.29 159.74,-240.49 152.25,-232.99 149.21,-239.29"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a xlink:href="../../dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551" target="_top" xlink:title="The volume of a sphere">
<polygon fill="white" stroke="black" points="151,-38.5 151,-57.5 264,-57.5 264,-38.5 151,-38.5"/>
<text text-anchor="middle" x="207.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">math::sphere_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node11 -->
<g id="edge15" class="edge">
<title>Node2&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M95.47,-133.26C102.57,-117.06 118.97,-84.63 143,-67 145.64,-65.06 148.49,-63.32 151.45,-61.75"/>
<polygon fill="midnightblue" stroke="midnightblue" points="152.99,-64.9 160.63,-57.56 150.08,-58.53 152.99,-64.9"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a xlink:href="../../dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c" target="_top" xlink:title="The volume of a triangular prism.">
<polygon fill="white" stroke="black" points="154,-191 154,-221 261,-221 261,-191 154,-191"/>
<text text-anchor="start" x="162" y="-209" font-family="Helvetica,sans-Serif" font-size="10.00">math::triangle_prism</text>
<text text-anchor="middle" x="207.5" y="-198" font-family="Helvetica,sans-Serif" font-size="10.00">_volume</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node12 -->
<g id="edge17" class="edge">
<title>Node2&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M102.78,-152.67C112.84,-160.96 128.22,-172.82 143,-181 146.67,-183.03 150.55,-184.98 154.49,-186.83"/>
<polygon fill="midnightblue" stroke="midnightblue" points="153.22,-190.1 163.78,-190.96 156.06,-183.7 153.22,-190.1"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="313,-196.5 313,-215.5 357,-215.5 357,-196.5 313,-196.5"/>
<text text-anchor="middle" x="335" y="-203.5" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M242.63,-171.58C252.19,-174.43 262.55,-177.69 272,-181 282.35,-184.63 293.51,-188.98 303.47,-193.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="302.37,-196.37 312.95,-196.95 305.04,-189.9 302.37,-196.37"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/numeric/math/pow.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="308,-95.5 308,-114.5 362,-114.5 362,-95.5 308,-95.5"/>
<text text-anchor="middle" x="335" y="-102.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::pow</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node3&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M246.36,-152.43C254.94,-149.77 263.91,-146.62 272,-143 286.01,-136.74 300.68,-127.86 312.24,-120.26"/>
<polygon fill="midnightblue" stroke="midnightblue" points="314.43,-123 320.77,-114.51 310.52,-117.2 314.43,-123"/>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge6" class="edge">
<title>Node6&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M259.55,-93.73C272.35,-95.67 285.83,-97.71 297.75,-99.51"/>
<polygon fill="midnightblue" stroke="midnightblue" points="297.36,-102.99 307.77,-101.03 298.4,-96.07 297.36,-102.99"/>
</g>
<!-- Node7&#45;&gt;Node4 -->
<g id="edge8" class="edge">
<title>Node7&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M251.1,-133.5C258.35,-136.02 265.59,-139.14 272,-143 291.6,-154.8 309.39,-174.22 320.84,-188.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="318.19,-190.68 327.11,-196.41 323.71,-186.37 318.19,-190.68"/>
</g>
<!-- Node7&#45;&gt;Node5 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M266.11,-115.28C276.92,-113.64 287.93,-111.97 297.85,-110.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="298.38,-113.93 307.75,-108.97 297.33,-107.01 298.38,-113.93"/>
</g>
<!-- Node9&#45;&gt;Node4 -->
<g id="edge12" class="edge">
<title>Node9&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M251.1,-278.5C258.35,-275.98 265.59,-272.86 272,-269 291.6,-257.2 309.39,-237.78 320.84,-223.62"/>
<polygon fill="midnightblue" stroke="midnightblue" points="323.71,-225.63 327.11,-215.59 318.19,-221.32 323.71,-225.63"/>
</g>
<!-- Node10&#45;&gt;Node4 -->
<g id="edge14" class="edge">
<title>Node10&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M242.63,-240.42C252.19,-237.57 262.55,-234.31 272,-231 282.35,-227.37 293.51,-223.02 303.47,-218.97"/>
<polygon fill="midnightblue" stroke="midnightblue" points="305.04,-222.1 312.95,-215.05 302.37,-215.63 305.04,-222.1"/>
</g>
<!-- Node11&#45;&gt;Node5 -->
<g id="edge16" class="edge">
<title>Node11&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M246.36,-57.57C254.94,-60.23 263.91,-63.38 272,-67 286.01,-73.26 300.68,-82.14 312.24,-89.74"/>
<polygon fill="midnightblue" stroke="midnightblue" points="310.52,-92.8 320.77,-95.49 314.43,-87 310.52,-92.8"/>
</g>
<!-- Node12&#45;&gt;Node4 -->
<g id="edge18" class="edge">
<title>Node12&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M261.36,-206C275.35,-206 290.01,-206 302.47,-206"/>
<polygon fill="midnightblue" stroke="midnightblue" points="302.78,-209.5 312.78,-206 302.78,-202.5 302.78,-209.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB