2017-01-21 12:51:39 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.11" / >
< title > amath: lib/cplex/ccoth.c 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 >
< script type = "text/javascript" >
$(document).ready(initResizable);
$(window).load(resizeHeight);
< / 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/javascript" >
$(document).ready(function() { init_search(); });
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > amath
2017-01-24 21:03:15 +00:00
  < span id = "projectnumber" > 1.6.2< / span >
2017-01-21 12:51:39 +00:00
< / div >
< div id = "projectbrief" > Simple command line calculator< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "files.html" > < span > File  List< / span > < / a > < / li >
< li > < a href = "globals.html" > < span > File  Members< / span > < / a > < / li >
< / ul >
< / 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" >
$(document).ready(function(){initNavTree('ccoth_8c.html','');});
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
< div class = "title" > ccoth.c File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include " < a class = "el" href = "cplex_2prim_8h_source.html" > prim.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "math_8h_source.html" > math.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "complex_8h_source.html" > complex.h< / a > " < / code > < br / >
< / div > < div class = "textblock" > < div class = "dynheader" >
Include dependency graph for ccoth.c:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "ccoth_8c__incl.png" border = "0" usemap = "#lib_2cplex_2ccoth_8c" alt = "" / > < / div >
< map name = "lib_2cplex_2ccoth_8c" id = "lib_2cplex_2ccoth_8c" >
< area shape = "rect" id = "node2" href = "cplex_2prim_8h.html" title = "prim.h" alt = "" coords = "65,80,123,107" / >
< area shape = "rect" id = "node3" href = "math_8h.html" title = "Functions in math library for handling real numbers. " alt = "" coords = "5,155,68,181" / >
< area shape = "rect" id = "node4" href = "complex_8h.html" title = "Functions in math library for handling complex numbers. " alt = "" coords = "110,155,193,181" / >
< / map >
< / div >
< / div >
< p > < a href = "ccoth_8c_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:abcc180facc4c06148ed64b7bd028e643" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "unioncomplex.html" > complex< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "ccoth_8c.html#abcc180facc4c06148ed64b7bd028e643" > ccoth< / a > (< a class = "el" href = "unioncomplex.html" > complex< / a > z)< / td > < / tr >
< tr class = "memdesc:abcc180facc4c06148ed64b7bd028e643" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Hyperbolic cotangent of a complex number. < a href = "#abcc180facc4c06148ed64b7bd028e643" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:abcc180facc4c06148ed64b7bd028e643" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Function Documentation< / h2 >
< a class = "anchor" id = "abcc180facc4c06148ed64b7bd028e643" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "unioncomplex.html" > complex< / a > ccoth < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "unioncomplex.html" > complex< / a >   < / td >
< td class = "paramname" > < em > z< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Hyperbolic cotangent of a complex number. < / p >
< pre >
acoth(z) = 0.5 * (log(1 + 1/z) - log(1 - 1/z))
< / pre > < p > or < / p > < pre >
a+bi
sinh(2.0 * a)
real = ---------------------------—
cosh(2.0 * a) - cos(2.0 * b)
< pre class = "fragment" > -sin(2.0 * b)
< / pre >
imag = ---------------------------—
cosh(2.0 * a) - cos(2.0 * b)
< / pre >
< p > Definition at line < a class = "el" href = "ccoth_8c_source.html#l00049" > 49< / a > of file < a class = "el" href = "ccoth_8c_source.html" > ccoth.c< / a > .< / p >
< p > References < a class = "el" href = "prim_8c_source.html#l00047" > cimag()< / a > , < a class = "el" href = "cos_8c_source.html#l00087" > cos()< / a > , < a class = "el" href = "cosh_8c_source.html#l00084" > cosh()< / a > , < a class = "el" href = "prim_8c_source.html#l00071" > cpack()< / a > , < a class = "el" href = "prim_8c_source.html#l00038" > creal()< / a > , < a class = "el" href = "sin_8c_source.html#l00087" > sin()< / a > , and < a class = "el" href = "sinh_8c_source.html#l00081" > sinh()< / a > .< / p >
< p > Referenced by < a class = "el" href = "cplex_8cpp_source.html#l00313" > ComplexNumber::HypCotangent()< / a > .< / p >
< div class = "fragment" > < div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > 50< / span >   {< / div > < div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > 51< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > w;< / div > < div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   < span class = "keywordtype" > double< / span > a, b;< / div > < div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > 53< / span >   < span class = "keywordtype" > double< / span > d;< / div > < div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > 54< / span >   < / div > < div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > 55< / span >   a = < a class = "code" href = "complex_8h.html#a4a236b24c0197821e3489a35a72079ab" > creal< / a > (z);< / div > < div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > 56< / span >   b = < a class = "code" href = "complex_8h.html#aa1fe0b9371befabef6c41ba73470774a" > cimag< / a > (z);< / div > < div class = "line" > < a name = "l00057" > < / a > < span class = "lineno" > 57< / span >   d = < a class = "code" href = "math_8h.html#a3795d3c1f1d30819be56da4e4d67f64b" > cosh< / a > (2.0 * a) - < a class = "code" href = "math_8h.html#a5e7b53a694b3cf0f2d7debd444140fbd" > cos< / a > (2.0 * b);< / div > < div class = "line" > < a name = "l00058" > < / a > < span class = "lineno" > 58< / span >   w = < a class = "code" href = "complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c" > cpack< / a > (< a class = "code" href = "math_8h.html#a862012e970c977c482507064e2793b45" > sinh< / a > (2.0 * a) / d, -< a class = "code" href = "math_8h.html#aad4af25633b071b0e2cdb8ebd87eca77" > sin< / a > (2.0 * b) / d);< / div > < div class = "line" > < a name = "l00059" > < / a > < span class = "lineno" > 59< / span >   < / div > < div class = "line" > < a name = "l00060" > < / a > < span class = "lineno" > 60< / span >   < span class = "keywordflow" > return< / span > w;< / div > < div class = "line" > < a name = "l00061" > < / a > < span class = "lineno" > 61< / span >   }< / div > < div class = "ttc" id = "unioncomplex_html" > < div class = "ttname" > < a href = "unioncomplex.html" > complex< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "complex_8h_source.html#l00040" > complex.h:40< / a > < / div > < / div >
< div class = "ttc" id = "math_8h_html_a862012e970c977c482507064e2793b45" > < div class = "ttname" > < a href = "math_8h.html#a862012e970c977c482507064e2793b45" > sinh< / a > < / div > < div class = "ttdeci" > double sinh(double x)< / div > < div class = "ttdoc" > Hyperbolic sine function. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "sinh_8c_source.html#l00081" > sinh.c:81< / a > < / div > < / div >
< div class = "ttc" id = "math_8h_html_a5e7b53a694b3cf0f2d7debd444140fbd" > < div class = "ttname" > < a href = "math_8h.html#a5e7b53a694b3cf0f2d7debd444140fbd" > cos< / a > < / div > < div class = "ttdeci" > double cos(double x)< / div > < div class = "ttdoc" > Trigonometric cosine function. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "cos_8c_source.html#l00087" > cos.c:87< / a > < / div > < / div >
< div class = "ttc" id = "math_8h_html_aad4af25633b071b0e2cdb8ebd87eca77" > < div class = "ttname" > < a href = "math_8h.html#aad4af25633b071b0e2cdb8ebd87eca77" > sin< / a > < / div > < div class = "ttdeci" > double sin(double x)< / div > < div class = "ttdoc" > Trigonometric sine function. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "sin_8c_source.html#l00087" > sin.c:87< / a > < / div > < / div >
< div class = "ttc" id = "math_8h_html_a3795d3c1f1d30819be56da4e4d67f64b" > < div class = "ttname" > < a href = "math_8h.html#a3795d3c1f1d30819be56da4e4d67f64b" > cosh< / a > < / div > < div class = "ttdeci" > double cosh(double x)< / div > < div class = "ttdoc" > Hyperbolic cosine function. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "cosh_8c_source.html#l00084" > cosh.c:84< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_a980e6e049f7902b05fc9eb5614b07a5c" > < div class = "ttname" > < a href = "complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c" > cpack< / a > < / div > < div class = "ttdeci" > complex cpack(double x, double y)< / div > < div class = "ttdoc" > Pack two real numbers into a complex number. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00071" > prim.c:71< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_a4a236b24c0197821e3489a35a72079ab" > < div class = "ttname" > < a href = "complex_8h.html#a4a236b24c0197821e3489a35a72079ab" > creal< / a > < / div > < div class = "ttdeci" > double creal(complex z)< / div > < div class = "ttdoc" > Real part of complex number. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00038" > prim.c:38< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_aa1fe0b9371befabef6c41ba73470774a" > < div class = "ttname" > < a href = "complex_8h.html#aa1fe0b9371befabef6c41ba73470774a" > cimag< / a > < / div > < div class = "ttdeci" > double cimag(complex z)< / div > < div class = "ttdoc" > Imaginary part of complex number. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00047" > prim.c:47< / a > < / div > < / div >
< / div > <!-- fragment -->
< p > < div class = "dynheader" >
Here is the call graph for this function:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "ccoth_8c_abcc180facc4c06148ed64b7bd028e643_cgraph.png" border = "0" usemap = "#ccoth_8c_abcc180facc4c06148ed64b7bd028e643_cgraph" alt = "" / > < / div >
< map name = "ccoth_8c_abcc180facc4c06148ed64b7bd028e643_cgraph" id = "ccoth_8c_abcc180facc4c06148ed64b7bd028e643_cgraph" >
< area shape = "rect" id = "node2" href = "prim_8c.html#aa1fe0b9371befabef6c41ba73470774a" title = "Imaginary part of complex number. " alt = "" coords = "108,5,165,32" / >
< area shape = "rect" id = "node3" href = "cos_8c.html#a5e7b53a694b3cf0f2d7debd444140fbd" title = "Trigonometric cosine function. " alt = "" coords = "115,107,158,133" / >
< area shape = "rect" id = "node9" href = "cosh_8c.html#a3795d3c1f1d30819be56da4e4d67f64b" title = "Hyperbolic cosine function. " alt = "" coords = "111,208,162,235" / >
< area shape = "rect" id = "node12" href = "prim_8c.html#a980e6e049f7902b05fc9eb5614b07a5c" title = "Pack two real numbers into a complex number. " alt = "" coords = "108,259,165,285" / >
< area shape = "rect" id = "node13" href = "prim_8c.html#a4a236b24c0197821e3489a35a72079ab" title = "Real part of complex number. " alt = "" coords = "111,309,162,336" / >
< area shape = "rect" id = "node14" href = "sin_8c.html#aad4af25633b071b0e2cdb8ebd87eca77" title = "Trigonometric sine function. " alt = "" coords = "117,56,156,83" / >
< area shape = "rect" id = "node15" href = "sinh_8c.html#a862012e970c977c482507064e2793b45" title = "Hyperbolic sine function. " alt = "" coords = "113,157,160,184" / >
< area shape = "rect" id = "node4" href = "kcos_8c.html#a5468a5a3c3d5d5e34e73fac9d6bc0122" title = "Kernel cos function. " alt = "" coords = "213,5,312,32" / >
< area shape = "rect" id = "node5" href = "remp2_8c.html#a320ce87737d621d713124124e2c02cdc" title = "rempio2" alt = "" coords = "229,56,297,83" / >
< area shape = "rect" id = "node8" href = "ksin_8c.html#adcc3cb89edf47f34f1e8058e198be293" title = "Kernel sin function. " alt = "" coords = "215,107,310,133" / >
< area shape = "rect" id = "node6" href = "kremp2_8c.html#a8a5e87d33974881295c4ed0d09732f71" title = "Kernel reduction function. " alt = "" coords = "360,56,491,83" / >
< area shape = "rect" id = "node7" href = "scalbn_8c.html#a0353978ec1ae247f2d95f2dc75856ed6" title = "scalbn" alt = "" coords = "539,56,599,83" / >
< area shape = "rect" id = "node10" href = "expm1_8c.html#ae4963ac40f96d4b1fe8af1b1e90a20bb" title = "expm1" alt = "" coords = "232,208,293,235" / >
< area shape = "rect" id = "node11" href = "exp_8c.html#ae09128febbbe6372cde4fa0c65608a42" title = "Returns the exponential of x. " alt = "" coords = "241,157,284,184" / >
< / map >
< / div >
< / p >
< p > < div class = "dynheader" >
Here is the caller graph for this function:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "ccoth_8c_abcc180facc4c06148ed64b7bd028e643_icgraph.png" border = "0" usemap = "#ccoth_8c_abcc180facc4c06148ed64b7bd028e643_icgraph" alt = "" / > < / div >
< map name = "ccoth_8c_abcc180facc4c06148ed64b7bd028e643_icgraph" id = "ccoth_8c_abcc180facc4c06148ed64b7bd028e643_icgraph" >
< area shape = "rect" id = "node2" href = "structComplexNumber.html#aecf508c5b54725938ffe98f97088d4db" title = "ComplexNumber::HypCotangent" alt = "" coords = "108,5,320,32" / >
< / map >
< / div >
< / p >
< / 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_97aefd0d527b934f1d99a682da8fe6a9.html" > lib< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_a8e1daca3aca8c066580f50e93d3fce3.html" > cplex< / a > < / li > < li class = "navelem" > < a class = "el" href = "ccoth_8c.html" > ccoth.c< / a > < / li >
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.8.11 < / li >
< / ul >
< / div >
< / body >
< / html >