Documentation for 17a532637a

This commit is contained in:
github-actions
2023-07-21 04:50:46 +00:00
parent 13b937219e
commit c64f4cbb64
56 changed files with 1704 additions and 558 deletions

View File

@@ -0,0 +1,268 @@
<!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" lang="en-US">
<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.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: math/iterative_factorial.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 id="projectrow">
<td id="projectalign">
<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.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../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('db/d9f/iterative__factorial_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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</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">iterative_factorial.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Iterative implementation of <a href="https://en.wikipedia.org/wiki/Factorial" target="_blank">Factorial</a>
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;cstdint&gt;</code><br />
<code>#include &lt;exception&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for iterative_factorial.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d4/d00/iterative__factorial_8cpp__incl.svg" width="358" height="111"><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 IO operations <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:a2565c745aac2f9561cc6fd9e56d9b77a"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a> (uint8_t n)</td></tr>
<tr class="memdesc:a2565c745aac2f9561cc6fd9e56d9b77a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the factorial iteratively. <br /></td></tr>
<tr class="separator:a2565c745aac2f9561cc6fd9e56d9b77a"><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="../../db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-test implementations to test iterativeFactorial function. <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="../../db/d9f/iterative__factorial_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <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>Iterative implementation of <a href="https://en.wikipedia.org/wiki/Factorial" target="_blank">Factorial</a> </p>
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/Renjian-buchai" target="_blank">Renjian-buchai</a></dd></dl>
<p>Calculates factorial iteratively. </p><p class="formulaDsp">
\[n! = n\times(n-1)\times(n-2)\times(n-3)\times\ldots\times3\times2\times1
= n\times(n-1)!\]
</p>
<p> for example: \(4! = 4\times3! = 4\times3\times2\times1 = 24\) </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</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"><span class="lineno"> 118</span> {</div>
<div class="line"><span class="lineno"> 119</span> <a class="code hl_function" href="../../db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// Run self-test implementation</span></div>
<div class="line"><span class="lineno"> 120</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 121</span>}</div>
<div class="ttc" id="aiterative__factorial_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-test implementations to test iterativeFactorial function.</div><div class="ttdef"><b>Definition</b> iterative_factorial.cpp:69</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="../../db/d9f/iterative__factorial_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="354" height="102"><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;&#160;</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 to test iterativeFactorial function. </p>
<dl class="section note"><dt>Note</dt><dd>There is 1 special case: 0! = 1. </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 69</span> {</div>
<div class="line"><span class="lineno"> 70</span> <span class="comment">// Special case test</span></div>
<div class="line"><span class="lineno"> 71</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;Exception case test \n&quot;</span></div>
<div class="line"><span class="lineno"> 72</span> <span class="stringliteral">&quot;Input: 0 \n&quot;</span></div>
<div class="line"><span class="lineno"> 73</span> <span class="stringliteral">&quot;Expected output: 1 \n\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 74</span> assert(<a class="code hl_function" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a>(0) == 1);</div>
<div class="line"><span class="lineno"> 75</span> </div>
<div class="line"><span class="lineno"> 76</span> <span class="comment">// Base case</span></div>
<div class="line"><span class="lineno"> 77</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;Base case test \n&quot;</span></div>
<div class="line"><span class="lineno"> 78</span> <span class="stringliteral">&quot;Input: 1 \n&quot;</span></div>
<div class="line"><span class="lineno"> 79</span> <span class="stringliteral">&quot;Expected output: 1 \n\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 80</span> assert(<a class="code hl_function" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a>(1) == 1);</div>
<div class="line"><span class="lineno"> 81</span> </div>
<div class="line"><span class="lineno"> 82</span> <span class="comment">// Small case</span></div>
<div class="line"><span class="lineno"> 83</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;Small number case test \n&quot;</span></div>
<div class="line"><span class="lineno"> 84</span> <span class="stringliteral">&quot;Input: 5 \n&quot;</span></div>
<div class="line"><span class="lineno"> 85</span> <span class="stringliteral">&quot;Expected output: 120 \n\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 86</span> assert(<a class="code hl_function" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a>(5) == 120);</div>
<div class="line"><span class="lineno"> 87</span> </div>
<div class="line"><span class="lineno"> 88</span> <span class="comment">// Medium case</span></div>
<div class="line"><span class="lineno"> 89</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;Medium number case test \n&quot;</span></div>
<div class="line"><span class="lineno"> 90</span> <span class="stringliteral">&quot;Input: 10 \n&quot;</span></div>
<div class="line"><span class="lineno"> 91</span> <span class="stringliteral">&quot;Expected output: 3628800 \n\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 92</span> assert(<a class="code hl_function" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a>(10) == 3628800);</div>
<div class="line"><span class="lineno"> 93</span> </div>
<div class="line"><span class="lineno"> 94</span> <span class="comment">// Maximum case</span></div>
<div class="line"><span class="lineno"> 95</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;Maximum case test \n&quot;</span></div>
<div class="line"><span class="lineno"> 96</span> <span class="stringliteral">&quot;Input: 20 \n&quot;</span></div>
<div class="line"><span class="lineno"> 97</span> <span class="stringliteral">&quot;Expected output: 2432902008176640000\n\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 98</span> assert(<a class="code hl_function" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a>(20) == 2432902008176640000);</div>
<div class="line"><span class="lineno"> 99</span> </div>
<div class="line"><span class="lineno"> 100</span> <span class="comment">// Exception test</span></div>
<div class="line"><span class="lineno"> 101</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;Exception test \n&quot;</span></div>
<div class="line"><span class="lineno"> 102</span> <span class="stringliteral">&quot;Input: 21 \n&quot;</span></div>
<div class="line"><span class="lineno"> 103</span> <span class="stringliteral">&quot;Expected output: Exception thrown \n&quot;</span>;</div>
<div class="line"><span class="lineno"> 104</span> <span class="keywordflow">try</span> {</div>
<div class="line"><span class="lineno"> 105</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a>(21);</div>
<div class="line"><span class="lineno"> 106</span> } <span class="keywordflow">catch</span> (<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a>* e) {</div>
<div class="line"><span class="lineno"> 107</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;Exception thrown successfully \nContent: &quot;</span> &lt;&lt; e-&gt;<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/exception/what.html">what</a>()</div>
<div class="line"><span class="lineno"> 108</span> &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 109</span> }</div>
<div class="line"><span class="lineno"> 110</span> </div>
<div class="line"><span class="lineno"> 111</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;All tests have passed successfully.\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 112</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="ainvalid_argument_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a></div></div>
<div class="ttc" id="anamespacemath_html_a2565c745aac2f9561cc6fd9e56d9b77a"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a">math::iterativeFactorial</a></div><div class="ttdeci">uint64_t iterativeFactorial(uint8_t n)</div><div class="ttdoc">Calculates the factorial iteratively.</div><div class="ttdef"><b>Definition</b> iterative_factorial.cpp:47</div></div>
<div class="ttc" id="awhat_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception/what.html">std::invalid_argument::what</a></div><div class="ttdeci">T what(T... args)</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="../../db/d9f/iterative__factorial_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="256" height="102"><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="../../db/d9f/iterative__factorial_8cpp.html">iterative_factorial.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.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,6 @@
var iterative__factorial_8cpp =
[
[ "iterativeFactorial", "db/d9f/iterative__factorial_8cpp.html#a2565c745aac2f9561cc6fd9e56d9b77a", null ],
[ "main", "db/d9f/iterative__factorial_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
[ "test", "db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ]
];

View File

@@ -0,0 +1,7 @@
<map id="test" name="test">
<area shape="rect" id="Node000001" title="Self&#45;test implementations to test iterativeFactorial function." alt="" coords="5,35,49,60"/>
<area shape="rect" id="Node000002" href="$dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a" title="Calculates the factorial iteratively." alt="" coords="97,5,251,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="48,41,92,32,93,37,50,46"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/error/exception/what.html#" title=" " alt="" coords="101,55,247,96"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="49,49,87,56,86,61,48,54"/>
</map>

View File

@@ -0,0 +1 @@
605fe1d5154e75ef27305691a172b945

View File

@@ -0,0 +1,83 @@
<?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 8.1.0 (20230707.0739)
-->
<!-- Title: test Pages: 1 -->
<svg width="192pt" height="76pt"
viewBox="0.00 0.00 192.25 75.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 71.88)">
<title>test</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Self&#45;test implementations to test iterativeFactorial function.">
<polygon fill="#999999" stroke="#666666" points="32.5,-45.88 0,-45.88 0,-26.62 32.5,-26.62 32.5,-45.88"/>
<text text-anchor="middle" x="16.25" y="-32.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a" target="_top" xlink:title="Calculates the factorial iteratively.">
<polygon fill="white" stroke="#666666" points="184.25,-67.88 68.5,-67.88 68.5,-48.62 184.25,-48.62 184.25,-67.88"/>
<text text-anchor="middle" x="126.38" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">math::iterativeFactorial</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.74,-39.4C41.5,-41.18 53.09,-43.54 65.08,-45.98"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="64.17,-49.57 74.67,-48.14 65.57,-42.71 64.17,-49.57"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/error/exception/what.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="180.88,-30.5 71.88,-30.5 71.88,0 180.88,0 180.88,-30.5"/>
<text text-anchor="start" x="79.88" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::invalid_argument</text>
<text text-anchor="middle" x="126.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::what</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.74,-33.24C40.54,-31.73 50.57,-29.78 61.13,-27.73"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.67,-30.99 70.81,-25.65 60.33,-24.12 61.67,-30.99"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,58 @@
<?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 8.1.0 (20230707.0739)
-->
<!-- Title: test Pages: 1 -->
<svg width="192pt" height="76pt"
viewBox="0.00 0.00 192.25 75.88" 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 71.88)">
<title>test</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Self&#45;test implementations to test iterativeFactorial function.">
<polygon fill="#999999" stroke="#666666" points="32.5,-45.88 0,-45.88 0,-26.62 32.5,-26.62 32.5,-45.88"/>
<text text-anchor="middle" x="16.25" y="-32.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a" target="_top" xlink:title="Calculates the factorial iteratively.">
<polygon fill="white" stroke="#666666" points="184.25,-67.88 68.5,-67.88 68.5,-48.62 184.25,-48.62 184.25,-67.88"/>
<text text-anchor="middle" x="126.38" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">math::iterativeFactorial</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.74,-39.4C41.5,-41.18 53.09,-43.54 65.08,-45.98"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="64.17,-49.57 74.67,-48.14 65.57,-42.71 64.17,-49.57"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/error/exception/what.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="180.88,-30.5 71.88,-30.5 71.88,0 180.88,0 180.88,-30.5"/>
<text text-anchor="start" x="79.88" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::invalid_argument</text>
<text text-anchor="middle" x="126.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::what</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.74,-33.24C40.54,-31.73 50.57,-29.78 61.13,-27.73"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.67,-30.99 70.81,-25.65 60.33,-24.12 61.67,-30.99"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,9 @@
<map id="main" name="main">
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,35,55,60"/>
<area shape="rect" id="Node000002" href="$db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self&#45;test implementations to test iterativeFactorial function." alt="" coords="103,35,146,60"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,45,88,45,88,50,55,50"/>
<area shape="rect" id="Node000003" href="$dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a" title="Calculates the factorial iteratively." alt="" coords="194,5,348,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="146,41,189,32,190,37,147,46"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/error/exception/what.html#" title=" " alt="" coords="199,55,344,96"/>
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="147,49,185,56,184,61,146,54"/>
</map>

View File

@@ -0,0 +1 @@
bc43a3d1ab9ddcc1988bc353c7b73655

View File

@@ -0,0 +1,101 @@
<?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 8.1.0 (20230707.0739)
-->
<!-- Title: main Pages: 1 -->
<svg width="265pt" height="76pt"
viewBox="0.00 0.00 265.25 75.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 71.88)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="37,-45.88 0,-45.88 0,-26.62 37,-26.62 37,-45.88"/>
<text text-anchor="middle" x="18.5" y="-32.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;test implementations to test iterativeFactorial function.">
<polygon fill="white" stroke="#666666" points="105.5,-45.88 73,-45.88 73,-26.62 105.5,-26.62 105.5,-45.88"/>
<text text-anchor="middle" x="89.25" y="-32.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.2,-36.25C44.67,-36.25 53.52,-36.25 61.73,-36.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.71,-39.75 71.71,-36.25 61.71,-32.75 61.71,-39.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a" target="_top" xlink:title="Calculates the factorial iteratively.">
<polygon fill="white" stroke="#666666" points="257.25,-67.88 141.5,-67.88 141.5,-48.62 257.25,-48.62 257.25,-67.88"/>
<text text-anchor="middle" x="199.38" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">math::iterativeFactorial</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.74,-39.4C114.5,-41.18 126.09,-43.54 138.08,-45.98"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.17,-49.57 147.67,-48.14 138.57,-42.71 137.17,-49.57"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/error/exception/what.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="253.88,-30.5 144.88,-30.5 144.88,0 253.88,0 253.88,-30.5"/>
<text text-anchor="start" x="152.88" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::invalid_argument</text>
<text text-anchor="middle" x="199.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::what</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.74,-33.24C113.54,-31.73 123.57,-29.78 134.13,-27.73"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.67,-30.99 143.81,-25.65 133.33,-24.12 134.67,-30.99"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -0,0 +1,76 @@
<?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 8.1.0 (20230707.0739)
-->
<!-- Title: main Pages: 1 -->
<svg width="265pt" height="76pt"
viewBox="0.00 0.00 265.25 75.88" 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 71.88)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="37,-45.88 0,-45.88 0,-26.62 37,-26.62 37,-45.88"/>
<text text-anchor="middle" x="18.5" y="-32.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../db/d9f/iterative__factorial_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;test implementations to test iterativeFactorial function.">
<polygon fill="white" stroke="#666666" points="105.5,-45.88 73,-45.88 73,-26.62 105.5,-26.62 105.5,-45.88"/>
<text text-anchor="middle" x="89.25" y="-32.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.2,-36.25C44.67,-36.25 53.52,-36.25 61.73,-36.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.71,-39.75 71.71,-36.25 61.71,-32.75 61.71,-39.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a" target="_top" xlink:title="Calculates the factorial iteratively.">
<polygon fill="white" stroke="#666666" points="257.25,-67.88 141.5,-67.88 141.5,-48.62 257.25,-48.62 257.25,-67.88"/>
<text text-anchor="middle" x="199.38" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">math::iterativeFactorial</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.74,-39.4C114.5,-41.18 126.09,-43.54 138.08,-45.98"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.17,-49.57 147.67,-48.14 138.57,-42.71 137.17,-49.57"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/error/exception/what.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="253.88,-30.5 144.88,-30.5 144.88,0 253.88,0 253.88,-30.5"/>
<text text-anchor="start" x="152.88" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::invalid_argument</text>
<text text-anchor="middle" x="199.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::what</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.74,-33.24C113.54,-31.73 123.57,-29.78 134.13,-27.73"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.67,-30.99 143.81,-25.65 133.33,-24.12 134.67,-30.99"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB