mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-10 22:16:53 +08:00
Documentation for c26eea874d
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<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.12.0"/>
|
||||
<meta name="generator" content="Doxygen 1.13.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>TheAlgorithms/C++: /Users/runner/work/C-Plus-Plus/C-Plus-Plus/math/quadratic_equations_complex_numbers.cpp</title>
|
||||
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
|
||||
@@ -60,7 +60,7 @@ window.MathJax = {
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<!-- Generated by Doxygen 1.13.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
@@ -128,7 +128,8 @@ $(function(){initNavTree('df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plu
|
||||
<p>array<complex<long double, 2> solutions = quadraticEquation(1, 2, 1); cout << solutions[0] << " " << solutions[1] << "\n";</p>
|
||||
<p>solutions = quadraticEquation(1, 1, 1); // Reusing solutions. cout << solutions[0] << " " << solutions[1] << "\n"; return 0; }</p>
|
||||
<p>Output: (-1, 0) (-1, 0) (-0.5,0.866025) (-0.5,0.866025)</p>
|
||||
<div class="fragment"><div class="line"> </div>
|
||||
<div class="fragment"><div class="line"></div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"><span class="preprocessor">#include <array></span> </div>
|
||||
<div class="line"><span class="preprocessor">#include <cassert></span> </div>
|
||||
<div class="line"><span class="preprocessor">#include <cmath></span> </div>
|
||||
@@ -136,9 +137,9 @@ $(function(){initNavTree('df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plu
|
||||
<div class="line"><span class="preprocessor">#include <exception></span> </div>
|
||||
<div class="line"><span class="preprocessor">#include <iomanip></span> </div>
|
||||
<div class="line"><span class="preprocessor">#include <iostream></span> </div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"></div>
|
||||
<div class="line"><span class="keyword">namespace </span><a class="code hl_namespace" href="../../dd/d47/namespacemath.html">math</a> {</div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"></div>
|
||||
<div class="line">std::array<std::complex<long double>, 2> <a id="a0" name="a0"></a><a class="code hl_function" href="../../dd/d47/namespacemath.html#aacb1411ef2029e81f249c21e17c96fdb">quadraticEquation</a>(<span class="keywordtype">long</span> <span class="keywordtype">double</span> a,</div>
|
||||
<div class="line"> <span class="keywordtype">long</span> <span class="keywordtype">double</span> b,</div>
|
||||
<div class="line"> <span class="keywordtype">long</span> <span class="keywordtype">double</span> c) {</div>
|
||||
@@ -179,7 +180,7 @@ $(function(){initNavTree('df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plu
|
||||
<div class="line">}</div>
|
||||
<div class="line"> </div>
|
||||
<div class="line">} <span class="comment">// namespace math</span></div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"></div>
|
||||
<div class="line"><span class="keywordtype">void</span> <a id="a1" name="a1"></a><a class="code hl_function" href="../../da/d18/quadratic__equations__complex__numbers_8cpp.html#af7a6d4e3dc85a6288c8f1f7094830c5a">assertArray</a>(std::array<std::complex<long double>, 2> input,</div>
|
||||
<div class="line"> std::array<std::complex<long double>, 2> expected,</div>
|
||||
<div class="line"> <span class="keywordtype">size_t</span> precision = 10) {</div>
|
||||
@@ -196,7 +197,7 @@ $(function(){initNavTree('df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plu
|
||||
<div class="line"> </div>
|
||||
<div class="line"> assert(input == expected);</div>
|
||||
<div class="line">}</div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"></div>
|
||||
<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> <a id="a2" name="a2"></a><a class="code hl_function" href="../../dd/d1e/generate__parentheses_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>() {</div>
|
||||
<div class="line"> <span class="comment">// Values are equal and real.</span></div>
|
||||
<div class="line"> std::cout << <span class="stringliteral">"Input: \n"</span></div>
|
||||
@@ -256,7 +257,7 @@ $(function(){initNavTree('df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plu
|
||||
<div class="line"> std::cout << <span class="stringliteral">"Exception thrown successfully \n"</span>;</div>
|
||||
<div class="line"> }</div>
|
||||
<div class="line">}</div>
|
||||
<div class="line"> </div>
|
||||
<div class="line"></div>
|
||||
<div class="line"><span class="keywordtype">int</span> <a id="a3" name="a3"></a><a class="code hl_function" href="../../dd/d1e/generate__parentheses_8cpp.html#gae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
|
||||
<div class="line"> <a class="code hl_function" href="../../dd/d1e/generate__parentheses_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// Run self-test implementation.</span></div>
|
||||
<div class="line"> <span class="keywordflow">return</span> 0;</div>
|
||||
@@ -271,7 +272,7 @@ $(function(){initNavTree('df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plu
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<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.12.0 </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.13.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user