<p>Definition at line <aclass="el"href="cacosh_8c_source.html#l00043">43</a> of file <aclass="el"href="cacosh_8c_source.html">cacosh.c</a>.</p>
<p>References <aclass="el"href="prim_8c_source.html#l00128">cadd()</a>, <aclass="el"href="clog_8c_source.html#l00046">clog()</a>, <aclass="el"href="prim_8c_source.html#l00150">cmul()</a>, <aclass="el"href="prim_8c_source.html#l00071">cpack()</a>, <aclass="el"href="csqrt_8c_source.html#l00046">csqrt()</a>, and <aclass="el"href="prim_8c_source.html#l00139">csub()</a>.</p>
<p>Referenced by <aclass="el"href="cplex_8cpp_source.html#l00323">ComplexNumber::HypArcCosine()</a>.</p>
<divclass="fragment"><divclass="line"><aname="l00044"></a><spanclass="lineno"> 44</span> {</div><divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> <aclass="code"href="unioncomplex.html">complex</a><aclass="code"href="ktan_8c.html#a7cf126dbeb6f30c606e3b42fea65cfef">one</a> = <aclass="code"href="complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c">cpack</a>(1.0, 0.0);</div><divclass="line"><aname="l00046"></a><spanclass="lineno"> 46</span> <aclass="code"href="unioncomplex.html">complex</a> a = <aclass="code"href="complex_8h.html#a46bb0dd64d87c3aeb85417d1dadf6ddd">csub</a>(<aclass="code"href="complex_8h.html#a340ad83d03bcc727538d25dcf6dd26e9">cmul</a>(z, z) , one);</div><divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span> <aclass="code"href="unioncomplex.html">complex</a> b = <aclass="code"href="complex_8h.html#a02d8fd1ce9c4fa4e25b1fa676ca96d4e">cadd</a>(z, <aclass="code"href="complex_8h.html#afe5b814a44414f20d0f98fe974737edd">csqrt</a>(a));</div><divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span> <aclass="code"href="unioncomplex.html">complex</a> w = <aclass="code"href="complex_8h.html#a888b8eb5ccc46411e68f6d7b99035888">clog</a>(b);</div><divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span> <spanclass="keywordflow">return</span> w;</div><divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> }</div><divclass="ttc"id="unioncomplex_html"><divclass="ttname"><ahref="unioncomplex.html">complex</a></div><divclass="ttdef"><b>Definition:</b><ahref="complex_8h_source.html#l00040">complex.h:40</a></div></div>
<divclass="ttc"id="complex_8h_html_afe5b814a44414f20d0f98fe974737edd"><divclass="ttname"><ahref="complex_8h.html#afe5b814a44414f20d0f98fe974737edd">csqrt</a></div><divclass="ttdeci">complex csqrt(complex z)</div><divclass="ttdoc">Square root of complex number. </div><divclass="ttdef"><b>Definition:</b><ahref="csqrt_8c_source.html#l00046">csqrt.c:46</a></div></div>
<divclass="ttc"id="complex_8h_html_a340ad83d03bcc727538d25dcf6dd26e9"><divclass="ttname"><ahref="complex_8h.html#a340ad83d03bcc727538d25dcf6dd26e9">cmul</a></div><divclass="ttdeci">complex cmul(complex a, complex z)</div><divclass="ttdoc">Multiplication of two complex numbers. </div><divclass="ttdef"><b>Definition:</b><ahref="prim_8c_source.html#l00150">prim.c:150</a></div></div>
<divclass="ttc"id="complex_8h_html_a02d8fd1ce9c4fa4e25b1fa676ca96d4e"><divclass="ttname"><ahref="complex_8h.html#a02d8fd1ce9c4fa4e25b1fa676ca96d4e">cadd</a></div><divclass="ttdeci">complex cadd(complex a, complex z)</div><divclass="ttdoc">Addition of two complex numbers. </div><divclass="ttdef"><b>Definition:</b><ahref="prim_8c_source.html#l00128">prim.c:128</a></div></div>
<divclass="ttc"id="complex_8h_html_a46bb0dd64d87c3aeb85417d1dadf6ddd"><divclass="ttname"><ahref="complex_8h.html#a46bb0dd64d87c3aeb85417d1dadf6ddd">csub</a></div><divclass="ttdeci">complex csub(complex a, complex z)</div><divclass="ttdoc">Subtraction of two complex numbers. </div><divclass="ttdef"><b>Definition:</b><ahref="prim_8c_source.html#l00139">prim.c:139</a></div></div>
<divclass="ttc"id="complex_8h_html_a888b8eb5ccc46411e68f6d7b99035888"><divclass="ttname"><ahref="complex_8h.html#a888b8eb5ccc46411e68f6d7b99035888">clog</a></div><divclass="ttdeci">complex clog(complex z)</div><divclass="ttdoc">Natural logarithm of a complex number. </div><divclass="ttdef"><b>Definition:</b><ahref="clog_8c_source.html#l00046">clog.c:46</a></div></div>
<divclass="ttc"id="complex_8h_html_a980e6e049f7902b05fc9eb5614b07a5c"><divclass="ttname"><ahref="complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c">cpack</a></div><divclass="ttdeci">complex cpack(double x, double y)</div><divclass="ttdoc">Pack two real numbers into a complex number. </div><divclass="ttdef"><b>Definition:</b><ahref="prim_8c_source.html#l00071">prim.c:71</a></div></div>
<areashape="rect"id="node2"href="prim_8c.html#aa334a54c40e3eeb301f2a510a7675070"title="Addition of two complex numbers. "alt=""coords="117,208,168,235"/>
<areashape="rect"id="node3"href="prim_8c.html#a980e6e049f7902b05fc9eb5614b07a5c"title="Pack two real numbers into a complex number. "alt=""coords="216,259,273,285"/>
<areashape="rect"id="node6"href="clog_8c.html#a888b8eb5ccc46411e68f6d7b99035888"title="Natural logarithm of a complex number. "alt=""coords="119,132,166,159"/>
<areashape="rect"id="node12"href="prim_8c.html#a71e6e973f5b98b4c9140c0d374d9223d"title="Multiplication of two complex numbers. "alt=""coords="117,309,168,336"/>
<areashape="rect"id="node13"href="csqrt_8c.html#afe5b814a44414f20d0f98fe974737edd"title="Square root of complex number. "alt=""coords="117,436,168,463"/>
<areashape="rect"id="node14"href="prim_8c.html#a9bebe3fb8e9e03dbe04a2ecedbe4a114"title="Subtraction of two complex numbers. "alt=""coords="117,360,168,387"/>
<areashape="rect"id="node4"href="prim_8c.html#a4a236b24c0197821e3489a35a72079ab"title="Real part of complex number. "alt=""coords="325,512,375,539"/>
<areashape="rect"id="node5"href="prim_8c.html#aa1fe0b9371befabef6c41ba73470774a"title="Imaginary part of complex number. "alt=""coords="321,335,379,361"/>
<areashape="rect"id="node7"href="prim_8c.html#af6e02ba9d2566b52e3b0faf2d4ed973a"title="Absolute value of complex number. "alt=""coords="219,461,270,488"/>