mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-12-01 08:45:21 +08:00
Documentation for b924df9dd4
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<map id="math/sqrt_double.cpp" name="math/sqrt_double.cpp">
|
||||
<area shape="rect" id="Node000001" title="Calculate the square root of any positive real number in   time, with precision fixed using bisection..." alt="" coords="10,5,156,31"/>
|
||||
<area shape="rect" id="Node000001" title="Calculate the square root of any positive real number in   time, with precision fixed using bisection..." alt="" coords="50,5,196,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="78,30,55,67,51,64,73,33"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,165,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="92,29,116,66,111,66,89,34"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="111,31,65,71,62,67,106,32"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,152,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="125,29,125,64,120,62,121,33"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="175,79,246,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="139,29,187,69,182,69,137,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
2e9781dbd92e22712294cedbf23fa54f
|
||||
d07d188ceba69a1a30dd6f8f17fad441
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 16.1.2 (20261121.0218)
|
||||
-->
|
||||
<!-- Title: math/sqrt_double.cpp Pages: 1 -->
|
||||
<svg width="128pt" height="83pt"
|
||||
viewBox="0.00 0.00 128.00 83.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="189pt" height="83pt"
|
||||
viewBox="0.00 0.00 189.00 83.00" 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">
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Calculate the square root of any positive real number in   time, with precision fixed using bisection...">
|
||||
<polygon fill="#999999" stroke="#666666" points="113,-74.5 3.25,-74.5 3.25,-55.25 113,-55.25 113,-74.5"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="58.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/sqrt_double.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="143,-74.5 33.25,-74.5 33.25,-55.25 143,-55.25 143,-74.5"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="88.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/sqrt_double.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M52.51,-55.08C48.01,-48.03 41.54,-37.9 35.91,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="39.01,-27.43 30.68,-20.88 33.11,-31.2 39.01,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M77.27,-54.84C68.02,-47.15 54.5,-35.9 43.42,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.91,-24.2 35.98,-20.49 41.43,-29.58 45.91,-24.2"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="119.88,-19.25 66.38,-19.25 66.38,0 119.88,0 119.88,-19.25"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="93.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="109.62,-19.25 66.62,-19.25 66.62,0 109.62,0 109.62,-19.25"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="88.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cmath</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -59,8 +59,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M63.9,-55.08C68.54,-48.03 75.2,-37.9 80.99,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="83.82,-31.15 86.39,-20.87 77.97,-27.31 83.82,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M88.12,-55.08C88.12,-48.57 88.12,-39.42 88.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.63,-31.12 88.13,-21.12 84.63,-31.12 91.63,-31.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="180.88,-19.25 127.38,-19.25 127.38,0 180.88,0 180.88,-19.25"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="154.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M99.32,-54.84C108.86,-47.15 122.8,-35.9 134.23,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.33,-29.48 141.92,-20.48 131.94,-24.03 136.33,-29.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 16.1.2 (20261121.0218)
|
||||
-->
|
||||
<!-- Title: math/sqrt_double.cpp Pages: 1 -->
|
||||
<svg width="128pt" height="83pt"
|
||||
viewBox="0.00 0.00 128.00 83.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="189pt" height="83pt"
|
||||
viewBox="0.00 0.00 189.00 83.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 78.5)">
|
||||
<title>math/sqrt_double.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Calculate the square root of any positive real number in   time, with precision fixed using bisection...">
|
||||
<polygon fill="#999999" stroke="#666666" points="113,-74.5 3.25,-74.5 3.25,-55.25 113,-55.25 113,-74.5"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="58.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/sqrt_double.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="143,-74.5 33.25,-74.5 33.25,-55.25 143,-55.25 143,-74.5"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="88.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/sqrt_double.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M52.51,-55.08C48.01,-48.03 41.54,-37.9 35.91,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="39.01,-27.43 30.68,-20.88 33.11,-31.2 39.01,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M77.27,-54.84C68.02,-47.15 54.5,-35.9 43.42,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.91,-24.2 35.98,-20.49 41.43,-29.58 45.91,-24.2"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,8 +39,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="119.88,-19.25 66.38,-19.25 66.38,0 119.88,0 119.88,-19.25"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="93.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="109.62,-19.25 66.62,-19.25 66.62,0 109.62,0 109.62,-19.25"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="88.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cmath</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -48,8 +48,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M63.9,-55.08C68.54,-48.03 75.2,-37.9 80.99,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="83.82,-31.15 86.39,-20.87 77.97,-27.31 83.82,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M88.12,-55.08C88.12,-48.57 88.12,-39.42 88.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.63,-31.12 88.13,-21.12 84.63,-31.12 91.63,-31.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="180.88,-19.25 127.38,-19.25 127.38,0 180.88,0 180.88,-19.25"/>
|
||||
<text xml:space="preserve" text-anchor="middle" x="154.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M99.32,-54.84C108.86,-47.15 122.8,-35.9 134.23,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.33,-29.48 141.92,-20.48 131.94,-24.03 136.33,-29.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -142,23 +142,34 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('da/d24/sqrt__d
|
||||
N)\) time, with precision fixed using <a href="https://en.wikipedia.org/wiki/Bisection_method" target="_blank">bisection method</a> of root-finding.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <cmath></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for sqrt_double.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="../../d0/dfc/sqrt__double_8cpp__incl.svg" width="171" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="../../d0/dfc/sqrt__double_8cpp__incl.svg" width="252" 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>
|
||||
<p><a href="../../da/d24/sqrt__double_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 id="header-namespaces" class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:math" id="r_math"><td class="memItemLeft">namespace  </td><td class="memItemRight"><a class="el" href="../../dd/d47/namespacemath.html">math</a></td></tr>
|
||||
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft"> </td><td class="mdescRight">for assert <br /></td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ae662282ad0740d2063ac404ca3bd74fc" id="r_ae662282ad0740d2063ac404ca3bd74fc"><td class="memItemLeft">double </td><td class="memItemRight"><a class="el" href="#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a> (double a)</td></tr>
|
||||
<tr class="memitem:a35d4cc5ee702f942f648c160ba00e831" id="r_a35d4cc5ee702f942f648c160ba00e831"><td class="memItemLeft">double </td><td class="memItemRight"><a class="el" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a> (double a)</td></tr>
|
||||
<tr class="memdesc:a35d4cc5ee702f942f648c160ba00e831"><td class="mdescLeft"> </td><td class="mdescRight">Bisection method implemented for the function \(x^2-a=0\) whose roots are \(\pm\sqrt{a}\) and only the positive root is returned. <br /></td></tr>
|
||||
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d" id="r_aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft">static void </td><td class="memItemRight"><a class="el" href="#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
|
||||
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft"> </td><td class="mdescRight">Self-test implementations. <br /></td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft">int </td><td class="memItemRight"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Calculate the square root of any positive real number in \(O(\log
|
||||
N)\) time, with precision fixed using <a href="https://en.wikipedia.org/wiki/Bisection_method" target="_blank">bisection method</a> of root-finding. </p>
|
||||
<dl class="section author"><dt>Author</dt><dd>DarkWarrior703 </dd></dl>
|
||||
<dl class="section see"><dt>See also</dt><dd>Can be implemented using faster and better algorithms like <a class="el" href="../../de/dd3/newton__raphson__method_8cpp.html" title="Solve the equation using Newton-Raphson method for both real and complex solutions.">newton_raphson_method.cpp</a> and <a class="el" href="../../dd/d29/false__position_8cpp.html" title="Solve the equation using false position method, also known as the Secant method.">false_position.cpp</a> </dd></dl>
|
||||
|
||||
<p class="definition">Definition in file <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html">sqrt_double.cpp</a>.</p>
|
||||
@@ -177,63 +188,56 @@ N)\) time, with precision fixed using <a href="https://en.wikipedia.org/wiki/Bis
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>main function </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html#l00042">42</a> of file <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html">sqrt_double.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 42</span> {</div>
|
||||
<div class="line"><span class="lineno"> 43</span> <span class="keywordtype">double</span> n{};</div>
|
||||
<div class="line"><span class="lineno"> 44</span> std::cin >> n;</div>
|
||||
<div class="line"><span class="lineno"> 45</span> assert(n >= 0);</div>
|
||||
<div class="line"><span class="lineno"> 46</span> <span class="comment">// Change this line for a better precision</span></div>
|
||||
<div class="line"><span class="lineno"> 47</span> std::cout.precision(12);</div>
|
||||
<div class="line"><span class="lineno"> 48</span> std::cout << std::fixed << <a class="code hl_function" href="#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a>(n);</div>
|
||||
<div class="line"><span class="lineno"> 49</span>}</div>
|
||||
<div class="ttc" id="asqrt__double_8cpp_html_ae662282ad0740d2063ac404ca3bd74fc"><div class="ttname"><a href="#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a></div><div class="ttdeci">double Sqrt(double a)</div><div class="ttdef"><b>Definition</b> <a href="../../da/d24/sqrt__double_8cpp_source.html#l00016">sqrt_double.cpp:16</a></div></div>
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html#l00069">69</a> of file <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html">sqrt_double.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 69</span> {</div>
|
||||
<div class="line"><span class="lineno"> 70</span> <a class="code hl_function" href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a>();</div>
|
||||
<div class="line"><span class="lineno"> 71</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 72</span>}</div>
|
||||
<div class="ttc" id="acaesar__cipher_8cpp_html_ae1a3968e7947464bee7714f6d43b7002"><div class="ttname"><a href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a></div><div class="ttdeci">void test()</div><div class="ttdef"><b>Definition</b> <a href="../../d6/d2c/caesar__cipher_8cpp_source.html#l00100">caesar_cipher.cpp:100</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae662282ad0740d2063ac404ca3bd74fc" name="ae662282ad0740d2063ac404ca3bd74fc"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae662282ad0740d2063ac404ca3bd74fc">◆ </a></span>Sqrt()</h2>
|
||||
<a id="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">◆ </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">double Sqrt </td>
|
||||
<td class="memname">void test </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">double</td> <td class="paramname"><span class="paramname"><em>a</em></span></td><td>)</td>
|
||||
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel static">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>Bisection method implemented for the function \(x^2-a=0\) whose roots are \(\pm\sqrt{a}\) and only the positive root is returned. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html#l00016">16</a> of file <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html">sqrt_double.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 16</span> {</div>
|
||||
<div class="line"><span class="lineno"> 17</span> <span class="keywordflow">if</span> (a > 0 && a < 1) {</div>
|
||||
<div class="line"><span class="lineno"> 18</span> <span class="keywordflow">return</span> 1 / <a class="code hl_function" href="#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a>(1 / a);</div>
|
||||
<div class="line"><span class="lineno"> 19</span> }</div>
|
||||
<div class="line"><span class="lineno"> 20</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">l</a> = 0, r = a;</div>
|
||||
<div class="line"><span class="lineno"> 21</span> <span class="comment">/* Epsilon is the precision.</span></div>
|
||||
<div class="line"><span class="lineno"> 22</span><span class="comment"> A great precision is</span></div>
|
||||
<div class="line"><span class="lineno"> 23</span><span class="comment"> between 1e-7 and 1e-12.</span></div>
|
||||
<div class="line"><span class="lineno"> 24</span><span class="comment"> double epsilon = 1e-12;</span></div>
|
||||
<div class="line"><span class="lineno"> 25</span><span class="comment"> */</span></div>
|
||||
<div class="line"><span class="lineno"> 26</span> <span class="keywordtype">double</span> epsilon = 1e-12;</div>
|
||||
<div class="line"><span class="lineno"> 27</span> <span class="keywordflow">while</span> (l <= r) {</div>
|
||||
<div class="line"><span class="lineno"> 28</span> <span class="keywordtype">double</span> mid = (<a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">l</a> + r) / 2;</div>
|
||||
<div class="line"><span class="lineno"> 29</span> <span class="keywordflow">if</span> (mid * mid > a) {</div>
|
||||
<div class="line"><span class="lineno"> 30</span> r = mid;</div>
|
||||
<div class="line"><span class="lineno"> 31</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 32</span> <span class="keywordflow">if</span> (a - mid * mid < epsilon) {</div>
|
||||
<div class="line"><span class="lineno"> 33</span> <span class="keywordflow">return</span> mid;</div>
|
||||
<div class="line"><span class="lineno"> 34</span> }</div>
|
||||
<div class="line"><span class="lineno"> 35</span> <a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">l</a> = mid;</div>
|
||||
<div class="line"><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><span class="lineno"> 37</span> }</div>
|
||||
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">return</span> -1;</div>
|
||||
<div class="line"><span class="lineno"> 39</span>}</div>
|
||||
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a6d8df83a6f26ce24a75d3b358b7f5b8a"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">numerical_methods::simpson_method::l</a></div><div class="ttdeci">double l(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition</b> <a href="../../d4/d18/composite__simpson__rule_8cpp_source.html#l00119">composite_simpson_rule.cpp:119</a></div></div>
|
||||
<p>Self-test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html#l00055">55</a> of file <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html">sqrt_double.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 55</span> {</div>
|
||||
<div class="line"><span class="lineno"> 56</span> <span class="keyword">const</span> <span class="keywordtype">double</span> eps = 1e-9;</div>
|
||||
<div class="line"><span class="lineno"> 57</span> </div>
|
||||
<div class="line"><span class="lineno"> 58</span> assert(std::abs(std::sqrt(123) - <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a>(123)) < eps);</div>
|
||||
<div class="line"><span class="lineno"> 59</span> assert(std::abs(std::sqrt(25) - <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a>(25)) < eps);</div>
|
||||
<div class="line"><span class="lineno"> 60</span> assert(std::abs(std::sqrt(0.25) - <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a>(0.25)) < eps);</div>
|
||||
<div class="line"><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><span class="lineno"> 62</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 63</span>}</div>
|
||||
<div class="ttc" id="anamespacemath_html_a35d4cc5ee702f942f648c160ba00e831"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a></div><div class="ttdeci">double Sqrt(double a)</div><div class="ttdoc">Bisection method implemented for the function whose roots are and only the positive root is returne...</div><div class="ttdef"><b>Definition</b> <a href="../../da/d24/sqrt__double_8cpp_source.html#l00025">sqrt_double.cpp:25</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
var sqrt__double_8cpp =
|
||||
[
|
||||
[ "main", "da/d24/sqrt__double_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "Sqrt", "da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc", null ]
|
||||
[ "math::Sqrt", "dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831", null ],
|
||||
[ "test", "da/d24/sqrt__double_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ]
|
||||
];
|
||||
@@ -122,48 +122,61 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('da/d24/sqrt__d
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../da/d24/sqrt__double_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include <cassert></span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <iostream></span></div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span></div>
|
||||
<div class="foldopen" id="foldopen00016" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="../../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc"> 16</a></span><span class="keywordtype">double</span> <a class="code hl_function" href="../../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a>(<span class="keywordtype">double</span> a) {</div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">if</span> (a > 0 && a < 1) {</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keywordflow">return</span> 1 / <a class="code hl_function" href="../../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a>(1 / a);</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> }</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">double</span> l = 0, r = a;</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="comment">/* Epsilon is the precision.</span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"> A great precision is</span></div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> between 1e-7 and 1e-12.</span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"> double epsilon = 1e-12;</span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordtype">double</span> epsilon = 1e-12;</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">while</span> (l <= r) {</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keywordtype">double</span> mid = (l + r) / 2;</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">if</span> (mid * mid > a) {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> r = mid;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">if</span> (a - mid * mid < epsilon) {</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">return</span> mid;</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> }</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> l = mid;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> -1;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>}</div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include <cassert></span> </div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <cmath></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include <iostream></span> </div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../dd/d47/namespacemath.html">math</a> {</div>
|
||||
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831"> 25</a></span><span class="keywordtype">double</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">Sqrt</a>(<span class="keywordtype">double</span> a) {</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">if</span> (a > 0 && a < 1) {</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">return</span> 1 / <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">Sqrt</a>(1 / a);</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> }</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordtype">double</span> l = 0, r = a;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="comment">/* Epsilon is the precision.</span></div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="comment"> A great precision is</span></div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment"> between 1e-7 and 1e-12.</span></div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment"> double epsilon = 1e-12;</span></div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment"> */</span></div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">double</span> epsilon = 1e-12;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">while</span> (l <= r) {</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordtype">double</span> mid = (l + r) / 2;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">if</span> (mid * mid > a) {</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> r = mid;</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">if</span> (a - mid * mid < epsilon) {</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">return</span> mid;</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> l = mid;</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> }</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> -1;</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span></div>
|
||||
<div class="foldopen" id="foldopen00042" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../da/d24/sqrt__double_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 42</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../dd/d1e/generate__parentheses_8cpp.html#gae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">double</span> n{};</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> std::cin >> n;</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> assert(n >= 0);</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// Change this line for a better precision</span></div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> std::cout.precision(12);</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> std::cout << std::fixed << <a class="code hl_function" href="../../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a>(n);</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>}</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>} <span class="comment">// namespace math</span></div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span></div>
|
||||
<div class="foldopen" id="foldopen00055" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="../../da/d24/sqrt__double_8cpp.html#aa8dca7b867074164d5f45b0f3851269d"> 55</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a>() {</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">const</span> <span class="keywordtype">double</span> eps = 1e-9;</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> assert(std::abs(std::sqrt(123) - <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a>(123)) < eps);</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> assert(std::abs(std::sqrt(25) - <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a>(25)) < eps);</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> assert(std::abs(std::sqrt(0.25) - <a class="code hl_function" href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a>(0.25)) < eps);</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span></div>
|
||||
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../da/d24/sqrt__double_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 69</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../dd/d1e/generate__parentheses_8cpp.html#gae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_function" href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a>();</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span>}</div>
|
||||
</div>
|
||||
<div class="ttc" id="acaesar__cipher_8cpp_html_ae1a3968e7947464bee7714f6d43b7002"><div class="ttname"><a href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a></div><div class="ttdeci">void test()</div><div class="ttdef"><b>Definition</b> <a href="../../d6/d2c/caesar__cipher_8cpp_source.html#l00100">caesar_cipher.cpp:100</a></div></div>
|
||||
<div class="ttc" id="agenerate__parentheses_8cpp_html_gae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="../../dd/d1e/generate__parentheses_8cpp.html#gae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdoc">Main function.</div><div class="ttdef"><b>Definition</b> <a href="../../dd/d1e/generate__parentheses_8cpp_source.html#l00110">generate_parentheses.cpp:110</a></div></div>
|
||||
<div class="ttc" id="asqrt__double_8cpp_html_ae662282ad0740d2063ac404ca3bd74fc"><div class="ttname"><a href="../../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc">Sqrt</a></div><div class="ttdeci">double Sqrt(double a)</div><div class="ttdef"><b>Definition</b> <a href="#l00016">sqrt_double.cpp:16</a></div></div>
|
||||
<div class="ttc" id="anamespacemath_html"><div class="ttname"><a href="../../dd/d47/namespacemath.html">math</a></div><div class="ttdoc">for assert</div></div>
|
||||
<div class="ttc" id="anamespacemath_html_a35d4cc5ee702f942f648c160ba00e831"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a></div><div class="ttdeci">double Sqrt(double a)</div><div class="ttdoc">Bisection method implemented for the function whose roots are and only the positive root is returne...</div><div class="ttdef"><b>Definition</b> <a href="#l00025">sqrt_double.cpp:25</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
</div><!-- container -->
|
||||
|
||||
@@ -238,6 +238,8 @@ Functions</h2></td></tr>
|
||||
<tr class="memdesc:a8a48be4d7f14e34c5c92925bc1cbf3bb"><td class="mdescLeft"> </td><td class="mdescRight">This function finds whether a number is power of 2 or not. <br /></td></tr>
|
||||
<tr class="memitem:aacb1411ef2029e81f249c21e17c96fdb" id="r_aacb1411ef2029e81f249c21e17c96fdb"><td class="memItemLeft">std::array< std::complex< long double >, 2 > </td><td class="memItemRight"><a class="el" href="#aacb1411ef2029e81f249c21e17c96fdb">quadraticEquation</a> (long double a, long double b, long double c)</td></tr>
|
||||
<tr class="memdesc:aacb1411ef2029e81f249c21e17c96fdb"><td class="mdescLeft"> </td><td class="mdescRight">Quadratic equation calculator. <br /></td></tr>
|
||||
<tr class="memitem:a35d4cc5ee702f942f648c160ba00e831" id="r_a35d4cc5ee702f942f648c160ba00e831"><td class="memItemLeft">double </td><td class="memItemRight"><a class="el" href="#a35d4cc5ee702f942f648c160ba00e831">Sqrt</a> (double a)</td></tr>
|
||||
<tr class="memdesc:a35d4cc5ee702f942f648c160ba00e831"><td class="mdescLeft"> </td><td class="mdescRight">Bisection method implemented for the function \(x^2-a=0\) whose roots are \(\pm\sqrt{a}\) and only the positive root is returned. <br /></td></tr>
|
||||
<tr class="memitem:ae1ca505751f5a6d3977b86372cfe75ea" id="r_ae1ca505751f5a6d3977b86372cfe75ea"><td class="memItemLeft">uint64_t </td><td class="memItemRight"><a class="el" href="#ae1ca505751f5a6d3977b86372cfe75ea">binomialCoeffSum</a> (uint64_t n)</td></tr>
|
||||
<tr class="memitem:ae413098478fa38acaac887b7654f0725" id="r_ae413098478fa38acaac887b7654f0725"><td class="memTemplParams" colspan="2">template<typename T> </td></tr>
|
||||
<tr class="memitem:ae413098478fa38acaac887b7654f0725 template"><td class="memItemLeft">T </td><td class="memItemRight"><a class="el" href="#ae413098478fa38acaac887b7654f0725">cube_volume</a> (T length)</td></tr>
|
||||
@@ -263,6 +265,7 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>for assert </p>
|
||||
<p>For IO operations.</p>
|
||||
<p>std::cout</p>
|
||||
<p>for IO implementations</p>
|
||||
<p>Evaluate recurrence relation using <a href="https://www.hackerearth.com/practice/notes/matrix-exponentiation-1/" target="_blank">matrix exponentiation</a>.</p>
|
||||
@@ -320,6 +323,8 @@ Algorithm</h3>
|
||||
<p>Mathematical algorithms</p>
|
||||
<p>for assert for IO operations</p>
|
||||
<p>Mathematical algorithms</p>
|
||||
<p>For assert For std::abs, std::sqrt</p>
|
||||
<p>Mathematical algorithms</p>
|
||||
<p>for assert for std::pow for std::uint32_t</p>
|
||||
<p>Mathematical algorithms </p>
|
||||
</div><a name="doc-typedef-members" id="doc-typedef-members"></a><h2 id="header-doc-typedef-members" class="groupheader">Typedef Documentation</h2>
|
||||
@@ -1941,6 +1946,60 @@ template<typename T> </div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a35d4cc5ee702f942f648c160ba00e831" name="a35d4cc5ee702f942f648c160ba00e831"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a35d4cc5ee702f942f648c160ba00e831">◆ </a></span>Sqrt()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">double math::Sqrt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">double</td> <td class="paramname"><span class="paramname"><em>a</em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Bisection method implemented for the function \(x^2-a=0\) whose roots are \(\pm\sqrt{a}\) and only the positive root is returned. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">a</td><td>number to find the square root of </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>positive square root of <span class="tt">a</span>, or <span class="tt">-1</span> if <span class="tt">a < 0</span> </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html#l00025">25</a> of file <a class="el" href="../../da/d24/sqrt__double_8cpp_source.html">sqrt_double.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 25</span> {</div>
|
||||
<div class="line"><span class="lineno"> 26</span> <span class="keywordflow">if</span> (a > 0 && a < 1) {</div>
|
||||
<div class="line"><span class="lineno"> 27</span> <span class="keywordflow">return</span> 1 / <a class="code hl_function" href="#a35d4cc5ee702f942f648c160ba00e831">Sqrt</a>(1 / a);</div>
|
||||
<div class="line"><span class="lineno"> 28</span> }</div>
|
||||
<div class="line"><span class="lineno"> 29</span> <span class="keywordtype">double</span> l = 0, r = a;</div>
|
||||
<div class="line"><span class="lineno"> 30</span> <span class="comment">/* Epsilon is the precision.</span></div>
|
||||
<div class="line"><span class="lineno"> 31</span><span class="comment"> A great precision is</span></div>
|
||||
<div class="line"><span class="lineno"> 32</span><span class="comment"> between 1e-7 and 1e-12.</span></div>
|
||||
<div class="line"><span class="lineno"> 33</span><span class="comment"> double epsilon = 1e-12;</span></div>
|
||||
<div class="line"><span class="lineno"> 34</span><span class="comment"> */</span></div>
|
||||
<div class="line"><span class="lineno"> 35</span> <span class="keywordtype">double</span> epsilon = 1e-12;</div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">while</span> (l <= r) {</div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordtype">double</span> mid = (l + r) / 2;</div>
|
||||
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">if</span> (mid * mid > a) {</div>
|
||||
<div class="line"><span class="lineno"> 39</span> r = mid;</div>
|
||||
<div class="line"><span class="lineno"> 40</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> <span class="keywordflow">if</span> (a - mid * mid < epsilon) {</div>
|
||||
<div class="line"><span class="lineno"> 42</span> <span class="keywordflow">return</span> mid;</div>
|
||||
<div class="line"><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><span class="lineno"> 44</span> <a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">l</a> = mid;</div>
|
||||
<div class="line"><span class="lineno"> 45</span> }</div>
|
||||
<div class="line"><span class="lineno"> 46</span> }</div>
|
||||
<div class="line"><span class="lineno"> 47</span> <span class="keywordflow">return</span> -1;</div>
|
||||
<div class="line"><span class="lineno"> 48</span>}</div>
|
||||
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a6d8df83a6f26ce24a75d3b358b7f5b8a"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">numerical_methods::simpson_method::l</a></div><div class="ttdeci">double l(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition</b> <a href="../../d4/d18/composite__simpson__rule_8cpp_source.html#l00119">composite_simpson_rule.cpp:119</a></div></div>
|
||||
<div class="ttc" id="anamespacemath_html_a35d4cc5ee702f942f648c160ba00e831"><div class="ttname"><a href="#a35d4cc5ee702f942f648c160ba00e831">math::Sqrt</a></div><div class="ttdeci">double Sqrt(double a)</div><div class="ttdoc">Bisection method implemented for the function whose roots are and only the positive root is returne...</div><div class="ttdef"><b>Definition</b> <a href="../../da/d24/sqrt__double_8cpp_source.html#l00025">sqrt_double.cpp:25</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a971ce57e368f2f631cf1f4ff3f864049" name="a971ce57e368f2f631cf1f4ff3f864049"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a971ce57e368f2f631cf1f4ff3f864049">◆ </a></span>square_area()</h2>
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ var namespacemath =
|
||||
[ "sieve", "dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f", null ],
|
||||
[ "sphere_surface_area", "dd/d47/namespacemath.html#ab7f29862d30df351c317eedd60a0c656", null ],
|
||||
[ "sphere_volume", "dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551", null ],
|
||||
[ "Sqrt", "dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831", null ],
|
||||
[ "square_area", "dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049", null ],
|
||||
[ "square_perimeter", "dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14", null ],
|
||||
[ "sum_of_divisor", "dd/d47/namespacemath.html#af05567415a9ea36c254b54e3d5a2152a", null ],
|
||||
|
||||
@@ -2126,7 +2126,7 @@
|
||||
<a href="da/d23/eulers__totient__function_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"/>
|
||||
<a href="da/d23/eulers__totient__function_8cpp_source.html"/>
|
||||
<a href="da/d24/sqrt__double_8cpp.html"/>
|
||||
<a href="da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc"/>
|
||||
<a href="da/d24/sqrt__double_8cpp.html#aa8dca7b867074164d5f45b0f3851269d"/>
|
||||
<a href="da/d24/sqrt__double_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"/>
|
||||
<a href="da/d24/sqrt__double_8cpp_source.html"/>
|
||||
<a href="da/d27/prim_8cpp_source.html"/>
|
||||
@@ -2831,6 +2831,7 @@
|
||||
<a href="dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c"/>
|
||||
<a href="dd/d47/namespacemath.html#a3277e65a8f380e7632791975bfba0efb"/>
|
||||
<a href="dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551"/>
|
||||
<a href="dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831"/>
|
||||
<a href="dd/d47/namespacemath.html#a3d1e4db743b189f309327572663415f3"/>
|
||||
<a href="dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12"/>
|
||||
<a href="dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7"/>
|
||||
|
||||
@@ -157,7 +157,6 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('globals_func_s
|
||||
<li>SLEEP() : <a class="el" href="dd/d92/memory__game_8cpp.html#a5bdc30951221eae9c33413ff9eb574f6">memory_game.cpp</a></li>
|
||||
<li>sortcol() : <a class="el" href="df/d47/fcfs__scheduling_8cpp.html#a18920aa331faf4476b251c8cdb2c2bec">fcfs_scheduling.cpp</a>, <a class="el" href="d7/d1a/non__preemptive__sjf__scheduling_8cpp.html#a18920aa331faf4476b251c8cdb2c2bec">non_preemptive_sjf_scheduling.cpp</a></li>
|
||||
<li>spiralPrint() : <a class="el" href="db/d07/spiral__print_8cpp.html#a850d3f55e1a8d227176cdcc67352c197">spiral_print.cpp</a></li>
|
||||
<li>Sqrt() : <a class="el" href="da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc">sqrt_double.cpp</a></li>
|
||||
<li>Standard_InvSqrt() : <a class="el" href="d6/db8/inv__sqrt_8cpp.html#aa2703e5cf3fecde8becd9066b9666b97">inv_sqrt.cpp</a></li>
|
||||
<li>stoogeSort() : <a class="el" href="d4/d4f/stooge__sort_8cpp.html#ac23852832437dc68327efe9b1da2d91b">stooge_sort.cpp</a></li>
|
||||
<li>struzik_search() : <a class="el" href="d8/d8a/exponential__search_8cpp.html#af421bf4b7b95f20ac86c233adfdb9208">exponential_search.cpp</a></li>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -157,7 +157,6 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('globals_s.html
|
||||
<li>SLEEP() : <a class="el" href="dd/d92/memory__game_8cpp.html#a5bdc30951221eae9c33413ff9eb574f6">memory_game.cpp</a></li>
|
||||
<li>sortcol() : <a class="el" href="df/d47/fcfs__scheduling_8cpp.html#a18920aa331faf4476b251c8cdb2c2bec">fcfs_scheduling.cpp</a>, <a class="el" href="d7/d1a/non__preemptive__sjf__scheduling_8cpp.html#a18920aa331faf4476b251c8cdb2c2bec">non_preemptive_sjf_scheduling.cpp</a></li>
|
||||
<li>spiralPrint() : <a class="el" href="db/d07/spiral__print_8cpp.html#a850d3f55e1a8d227176cdcc67352c197">spiral_print.cpp</a></li>
|
||||
<li>Sqrt() : <a class="el" href="da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc">sqrt_double.cpp</a></li>
|
||||
<li>stack : <a class="el" href="dc/dc5/paranthesis__matching_8cpp.html#aa37d24a036d239b3b528f13b9de880c7">paranthesis_matching.cpp</a></li>
|
||||
<li>stack_idx : <a class="el" href="dc/dc5/paranthesis__matching_8cpp.html#af4c937d823c412d99fbe60c99dbf0a4f">paranthesis_matching.cpp</a></li>
|
||||
<li>Standard_InvSqrt() : <a class="el" href="d6/db8/inv__sqrt_8cpp.html#aa2703e5cf3fecde8becd9066b9666b97">inv_sqrt.cpp</a></li>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -148,6 +148,7 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('namespacemembe
|
||||
<li>sphere_surface_area() : <a class="el" href="dd/d47/namespacemath.html#ab7f29862d30df351c317eedd60a0c656">math</a></li>
|
||||
<li>sphere_volume() : <a class="el" href="dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551">math</a></li>
|
||||
<li>spirograph() : <a class="el" href="da/dd3/namespacespirograph.html#aeca22dbe4563358960e907a40cd3e1ac">spirograph</a></li>
|
||||
<li>Sqrt() : <a class="el" href="dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math</a></li>
|
||||
<li>square_area() : <a class="el" href="dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049">math</a></li>
|
||||
<li>square_perimeter() : <a class="el" href="dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14">math</a></li>
|
||||
<li>sum() : <a class="el" href="d8/d77/namespacemachine__learning.html#a6f1c98c016ad34ff3d9f39372161bd35">machine_learning</a></li>
|
||||
|
||||
@@ -148,6 +148,7 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('namespacemembe
|
||||
<li>sphere_surface_area() : <a class="el" href="dd/d47/namespacemath.html#ab7f29862d30df351c317eedd60a0c656">math</a></li>
|
||||
<li>sphere_volume() : <a class="el" href="dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551">math</a></li>
|
||||
<li>spirograph() : <a class="el" href="da/dd3/namespacespirograph.html#aeca22dbe4563358960e907a40cd3e1ac">spirograph</a></li>
|
||||
<li>Sqrt() : <a class="el" href="dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831">math</a></li>
|
||||
<li>square_area() : <a class="el" href="dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049">math</a></li>
|
||||
<li>square_perimeter() : <a class="el" href="dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14">math</a></li>
|
||||
<li>STRKEY : <a class="el" href="d6/d4e/namespaceciphers.html#ab9aec0ccf4b6809f652bb540be87c216">ciphers</a></li>
|
||||
|
||||
@@ -146,9 +146,9 @@ var NAVTREEINDEX =
|
||||
"da/d15/class_memorised_factorial.html",
|
||||
"db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#abdd461689df4983a3ad3b05d853cf5eb",
|
||||
"dc/d53/classtests_1_1_circular_linked_list.html#aa704319924f97fedfb41caf193a00888",
|
||||
"dd/d47/namespacemath.html#abd8f794b2229b42876169ff841b6e444",
|
||||
"de/dc5/intersection__of__two__arrays_8cpp.html#aa8dca7b867074164d5f45b0f3851269d",
|
||||
"dir_ece9b94c107bbaa1dd68197a8c9983b9.html"
|
||||
"dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c",
|
||||
"de/dc5/intersection__of__two__arrays_8cpp.html",
|
||||
"dir_e79632891301b850df87e9c0030293fa.html"
|
||||
];
|
||||
|
||||
const SYNCONMSG = 'click to disable panel synchronization';
|
||||
|
||||
@@ -221,15 +221,16 @@ var NAVTREEINDEX10 =
|
||||
"dd/d47/namespacemath.html#a0efb235330ff48e14fd31faaccbcebb3":[8,0,71,26],
|
||||
"dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73":[8,0,71,12],
|
||||
"dd/d47/namespacemath.html#a2565c745aac2f9561cc6fd9e56d9b77a":[8,0,71,19],
|
||||
"dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c":[8,0,71,45],
|
||||
"dd/d47/namespacemath.html#a2d704a7b72a6b2db8b76c8581b577b2c":[8,0,71,46],
|
||||
"dd/d47/namespacemath.html#a3277e65a8f380e7632791975bfba0efb":[8,0,71,15],
|
||||
"dd/d47/namespacemath.html#a34d66a77c19ce9b8b3a3d14352b34551":[8,0,71,38],
|
||||
"dd/d47/namespacemath.html#a3d1e4db743b189f309327572663415f3":[8,0,71,44],
|
||||
"dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831":[8,0,71,39],
|
||||
"dd/d47/namespacemath.html#a3d1e4db743b189f309327572663415f3":[8,0,71,45],
|
||||
"dd/d47/namespacemath.html#a3fdc74c24697ec5bb5c3698c96117c12":[8,0,71,35],
|
||||
"dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7":[8,0,71,7],
|
||||
"dd/d47/namespacemath.html#a40e36c67da78d2131408c57ee091ad75":[8,0,71,5],
|
||||
"dd/d47/namespacemath.html#a428769a16e9525e56588d7c7709d25a6":[8,0,71,34],
|
||||
"dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec":[8,0,71,42],
|
||||
"dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec":[8,0,71,43],
|
||||
"dd/d47/namespacemath.html#a5de184925e68658f15415dd53954df4f":[8,0,71,25],
|
||||
"dd/d47/namespacemath.html#a6c72f756a7bf1b9043c357e3fe7814ca":[8,0,71,17],
|
||||
"dd/d47/namespacemath.html#a6d64083d33c1c74e6b968901bc354db9":[8,0,71,0],
|
||||
@@ -240,14 +241,13 @@ var NAVTREEINDEX10 =
|
||||
"dd/d47/namespacemath.html#a8d8e81a7cd59644b311ef9adb268f5f0":[8,0,71,22],
|
||||
"dd/d47/namespacemath.html#a8e6eede206201db0d1dbb618fa969bec":[8,0,71,3],
|
||||
"dd/d47/namespacemath.html#a91366864111e1fac29722ca45e02ea8f":[8,0,71,36],
|
||||
"dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14":[8,0,71,40],
|
||||
"dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14":[8,0,71,41],
|
||||
"dd/d47/namespacemath.html#a94db02b3c9e55a69ac1696f30e2f761c":[8,0,71,31],
|
||||
"dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049":[8,0,71,39],
|
||||
"dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049":[8,0,71,40],
|
||||
"dd/d47/namespacemath.html#aa8592c3279c41a2c6d4d64eeb488f63f":[8,0,71,24],
|
||||
"dd/d47/namespacemath.html#aacb1411ef2029e81f249c21e17c96fdb":[8,0,71,32],
|
||||
"dd/d47/namespacemath.html#ab31d141f7c5b551746b1eee0eb4dedca":[8,0,71,33],
|
||||
"dd/d47/namespacemath.html#ab37f3a7302a84179aae682c79d8390bf":[8,0,71,1],
|
||||
"dd/d47/namespacemath.html#ab3b920cc56442abd92279ba23b50f4dc":[8,0,71,43],
|
||||
"dd/d47/namespacemath.html#ab7f29862d30df351c317eedd60a0c656":[8,0,71,37],
|
||||
"dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c":[8,0,71,8]
|
||||
"dd/d47/namespacemath.html#ab3b920cc56442abd92279ba23b50f4dc":[8,0,71,44],
|
||||
"dd/d47/namespacemath.html#ab7f29862d30df351c317eedd60a0c656":[8,0,71,37]
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
var NAVTREEINDEX11 =
|
||||
{
|
||||
"dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c":[8,0,71,8],
|
||||
"dd/d47/namespacemath.html#abd8f794b2229b42876169ff841b6e444":[8,0,71,18],
|
||||
"dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca":[8,0,71,13],
|
||||
"dd/d47/namespacemath.html#abf7f2a6d91f1ca6c89698792aea3f188":[8,0,71,2],
|
||||
@@ -10,7 +11,7 @@ var NAVTREEINDEX11 =
|
||||
"dd/d47/namespacemath.html#ae1ca505751f5a6d3977b86372cfe75ea":[8,0,71,4],
|
||||
"dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725":[8,0,71,10],
|
||||
"dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11":[8,0,71,16],
|
||||
"dd/d47/namespacemath.html#af05567415a9ea36c254b54e3d5a2152a":[8,0,71,41],
|
||||
"dd/d47/namespacemath.html#af05567415a9ea36c254b54e3d5a2152a":[8,0,71,42],
|
||||
"dd/d47/namespacemath.html#afa39ec943a4836c878e1614fd89b146f":[8,0,71,20],
|
||||
"dd/d47/namespacemath.html#afcd07701d73ed65cd616bcba02737f3d":[8,0,71,28],
|
||||
"dd/d4f/class_solution.html":[9,0,59],
|
||||
@@ -248,6 +249,5 @@ var NAVTREEINDEX11 =
|
||||
"de/dc3/fibonacci__sum_8cpp.html":[10,0,14,21],
|
||||
"de/dc3/fibonacci__sum_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,14,21,5],
|
||||
"de/dc3/fibonacci__sum_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,21,1],
|
||||
"de/dc3/fibonacci__sum_8cpp_source.html":[10,0,14,21],
|
||||
"de/dc5/intersection__of__two__arrays_8cpp.html":[10,0,16,6]
|
||||
"de/dc3/fibonacci__sum_8cpp_source.html":[10,0,14,21]
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
var NAVTREEINDEX12 =
|
||||
{
|
||||
"de/dc5/intersection__of__two__arrays_8cpp.html":[10,0,16,6],
|
||||
"de/dc5/intersection__of__two__arrays_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,16,6,5],
|
||||
"de/dc5/intersection__of__two__arrays_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,16,6,2],
|
||||
"de/dc5/intersection__of__two__arrays_8cpp_source.html":[10,0,16,6],
|
||||
@@ -248,6 +249,5 @@ var NAVTREEINDEX12 =
|
||||
"dir_bb1b521853a9c46347182a9d10420771.html":[10,0,23],
|
||||
"dir_c11585dfcef32a26e29098facab6c144.html":[10,0,0],
|
||||
"dir_cc8e79ed9d2b7756c78e8d0c87c6c0c7.html":[10,0,3],
|
||||
"dir_e3380d2178455503f266746fb14246a5.html":[10,0,8],
|
||||
"dir_e79632891301b850df87e9c0030293fa.html":[10,0,10]
|
||||
"dir_e3380d2178455503f266746fb14246a5.html":[10,0,8]
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
var NAVTREEINDEX13 =
|
||||
{
|
||||
"dir_e79632891301b850df87e9c0030293fa.html":[10,0,10],
|
||||
"dir_ece9b94c107bbaa1dd68197a8c9983b9.html":[10,0,12],
|
||||
"dir_f1797d0c2a0a12033e7d74efffeb14e1.html":[10,0,4,0],
|
||||
"dir_f3c4fbc4e901afa0a54d0623c5574aa7.html":[10,0,1],
|
||||
|
||||
@@ -30,7 +30,7 @@ var NAVTREEINDEX8 =
|
||||
"da/d23/eulers__totient__function_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,12,0],
|
||||
"da/d23/eulers__totient__function_8cpp_source.html":[10,0,14,12],
|
||||
"da/d24/sqrt__double_8cpp.html":[10,0,14,55],
|
||||
"da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc":[10,0,14,55,1],
|
||||
"da/d24/sqrt__double_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,14,55,2],
|
||||
"da/d24/sqrt__double_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,55,0],
|
||||
"da/d24/sqrt__double_8cpp_source.html":[10,0,14,55],
|
||||
"da/d27/prim_8cpp_source.html":[10,0,9,18],
|
||||
|
||||
@@ -105,7 +105,7 @@ var searchData=
|
||||
['spirograph_102',['spirograph',['../da/dd3/namespacespirograph.html',1,'spirograph'],['../da/dd3/namespacespirograph.html#aeca22dbe4563358960e907a40cd3e1ac',1,'spirograph::spirograph()']]],
|
||||
['spirograph_2ecpp_103',['spirograph.cpp',['../da/d77/spirograph_8cpp.html',1,'']]],
|
||||
['splitnode_104',['SplitNode',['../d3/d95/classdata__structures_1_1tree__234_1_1_tree234.html#a370b625ca9f16bbef2b65e024ef78ea9',1,'data_structures::tree_234::Tree234']]],
|
||||
['sqrt_105',['Sqrt',['../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc',1,'sqrt_double.cpp']]],
|
||||
['sqrt_105',['Sqrt',['../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831',1,'math']]],
|
||||
['sqrt_5fdouble_2ecpp_106',['sqrt_double.cpp',['../da/d24/sqrt__double_8cpp.html',1,'']]],
|
||||
['square_107',['square',['../d2/d58/neural__network_8cpp.html#a45d3e30406712ada3d9713ece3c1b153',1,'machine_learning::neural_network::util_functions']]],
|
||||
['square_5farea_108',['square_area',['../dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049',1,'math']]],
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -62,7 +62,7 @@ var searchData=
|
||||
['spiralprint_59',['spiralPrint',['../db/d07/spiral__print_8cpp.html#a850d3f55e1a8d227176cdcc67352c197',1,'spiral_print.cpp']]],
|
||||
['spirograph_60',['spirograph',['../da/dd3/namespacespirograph.html#aeca22dbe4563358960e907a40cd3e1ac',1,'spirograph']]],
|
||||
['splitnode_61',['SplitNode',['../d3/d95/classdata__structures_1_1tree__234_1_1_tree234.html#a370b625ca9f16bbef2b65e024ef78ea9',1,'data_structures::tree_234::Tree234']]],
|
||||
['sqrt_62',['Sqrt',['../da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc',1,'sqrt_double.cpp']]],
|
||||
['sqrt_62',['Sqrt',['../dd/d47/namespacemath.html#a35d4cc5ee702f942f648c160ba00e831',1,'math']]],
|
||||
['square_63',['square',['../d2/d58/neural__network_8cpp.html#a45d3e30406712ada3d9713ece3c1b153',1,'machine_learning::neural_network::util_functions']]],
|
||||
['square_5farea_64',['square_area',['../dd/d47/namespacemath.html#a971ce57e368f2f631cf1f4ff3f864049',1,'math']]],
|
||||
['square_5fperimeter_65',['square_perimeter',['../dd/d47/namespacemath.html#a9236348755183644f1225e162d01ab14',1,'math']]],
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user