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/cacsc.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('cacsc_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" > cacsc.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 cacsc.c:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "cacsc_8c__incl.png" border = "0" usemap = "#lib_2cplex_2cacsc_8c" alt = "" / > < / div >
< map name = "lib_2cplex_2cacsc_8c" id = "lib_2cplex_2cacsc_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 = "cacsc_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:aa8a49b2418f7bbcf0a8f72a15fbb4984" > < 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 = "cacsc_8c.html#aa8a49b2418f7bbcf0a8f72a15fbb4984" > cacsc< / a > (< a class = "el" href = "unioncomplex.html" > complex< / a > z)< / td > < / tr >
< tr class = "memdesc:aa8a49b2418f7bbcf0a8f72a15fbb4984" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Inverse cosecant of complex number. < a href = "#aa8a49b2418f7bbcf0a8f72a15fbb4984" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:aa8a49b2418f7bbcf0a8f72a15fbb4984" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Function Documentation< / h2 >
< a class = "anchor" id = "aa8a49b2418f7bbcf0a8f72a15fbb4984" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "unioncomplex.html" > complex< / a > cacsc < / 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 > Inverse cosecant of complex number. < / p >
< dl class = "section version" > < dt > Version< / dt > < dd > 1.1 < / dd > < / dl >
< dl class = "section date" > < dt > Date< / dt > < dd > 14/10/01< / dd > < / dl >
< p > Inverse cosecant expressed using complex logarithms: < / p > < pre >
arccsc z = -i * log(sqr(1 - 1/(z*z)) + i/z)
< / pre > < p > More info is available at Wikipedia: < br / >
< a href = "http://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Logarithmic_forms" > http://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Logarithmic_forms< / a > < / p >
< p > Definition at line < a class = "el" href = "cacsc_8c_source.html#l00043" > 43< / a > of file < a class = "el" href = "cacsc_8c_source.html" > cacsc.c< / a > .< / p >
< p > References < a class = "el" href = "prim_8c_source.html#l00128" > cadd()< / a > , < a class = "el" href = "prim_8c_source.html#l00170" > cdiv()< / a > , < a class = "el" href = "clog_8c_source.html#l00046" > clog()< / a > , < a class = "el" href = "prim_8c_source.html#l00150" > cmul()< / a > , < a class = "el" href = "prim_8c_source.html#l00071" > cpack()< / a > , < a class = "el" href = "csqrt_8c_source.html#l00046" > csqrt()< / a > , and < a class = "el" href = "prim_8c_source.html#l00139" > csub()< / a > .< / p >
< p > Referenced by < a class = "el" href = "cplex_8cpp_source.html#l00278" > ComplexNumber::ArcCosecant()< / a > .< / p >
< div class = "fragment" > < div class = "line" > < a name = "l00044" > < / a > < span class = "lineno" > 44< / span >   {< / div > < div class = "line" > < a name = "l00045" > < / a > < span class = "lineno" > 45< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > < a class = "code" href = "ktan_8c.html#a7cf126dbeb6f30c606e3b42fea65cfef" > one< / a > = < a class = "code" href = "complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c" > cpack< / a > (1.0, 0.0);< / div > < div class = "line" > < a name = "l00046" > < / a > < span class = "lineno" > 46< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > i = < a class = "code" href = "complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c" > cpack< / a > (0.0, 1.0);< / div > < div class = "line" > < a name = "l00047" > < / a > < span class = "lineno" > 47< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > j = < a class = "code" href = "complex_8h.html#a980e6e049f7902b05fc9eb5614b07a5c" > cpack< / a > (0.0, -1.0);< / div > < div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > 48< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > iz = < a class = "code" href = "complex_8h.html#ace985b5f12a681b496bd3ae5f8a966b4" > cdiv< / a > (i, z);< / div > < div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > 49< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > z2 = < a class = "code" href = "complex_8h.html#a340ad83d03bcc727538d25dcf6dd26e9" > cmul< / a > (z, z);< / div > < div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > 50< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > p = < a class = "code" href = "complex_8h.html#ace985b5f12a681b496bd3ae5f8a966b4" > cdiv< / a > (one, z2);< / div > < div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > 51< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > q = < a class = "code" href = "complex_8h.html#afe5b814a44414f20d0f98fe974737edd" > csqrt< / a > (< a class = "code" href = "complex_8h.html#a46bb0dd64d87c3aeb85417d1dadf6ddd" > csub< / a > (one, p));< / div > < div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   < a class = "code" href = "unioncomplex.html" > complex< / a > w = < a class = "code" href = "complex_8h.html#a340ad83d03bcc727538d25dcf6dd26e9" > cmul< / a > (j, < a class = "code" href = "complex_8h.html#a888b8eb5ccc46411e68f6d7b99035888" > clog< / a > (< a class = "code" href = "complex_8h.html#a02d8fd1ce9c4fa4e25b1fa676ca96d4e" > cadd< / a > (q, iz)));< / div > < div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > 53< / span >   < span class = "keywordflow" > return< / span > w;< / div > < div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > 54< / 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 = "complex_8h_html_afe5b814a44414f20d0f98fe974737edd" > < div class = "ttname" > < a href = "complex_8h.html#afe5b814a44414f20d0f98fe974737edd" > csqrt< / a > < / div > < div class = "ttdeci" > complex csqrt(complex z)< / div > < div class = "ttdoc" > Square root of complex number. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "csqrt_8c_source.html#l00046" > csqrt.c:46< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_a340ad83d03bcc727538d25dcf6dd26e9" > < div class = "ttname" > < a href = "complex_8h.html#a340ad83d03bcc727538d25dcf6dd26e9" > cmul< / a > < / div > < div class = "ttdeci" > complex cmul(complex a, complex z)< / div > < div class = "ttdoc" > Multiplication of two complex numbers. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00150" > prim.c:150< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_a02d8fd1ce9c4fa4e25b1fa676ca96d4e" > < div class = "ttname" > < a href = "complex_8h.html#a02d8fd1ce9c4fa4e25b1fa676ca96d4e" > cadd< / a > < / div > < div class = "ttdeci" > complex cadd(complex a, complex z)< / div > < div class = "ttdoc" > Addition of two complex numbers. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00128" > prim.c:128< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_a46bb0dd64d87c3aeb85417d1dadf6ddd" > < div class = "ttname" > < a href = "complex_8h.html#a46bb0dd64d87c3aeb85417d1dadf6ddd" > csub< / a > < / div > < div class = "ttdeci" > complex csub(complex a, complex z)< / div > < div class = "ttdoc" > Subtraction of two complex numbers. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00139" > prim.c:139< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_ace985b5f12a681b496bd3ae5f8a966b4" > < div class = "ttname" > < a href = "complex_8h.html#ace985b5f12a681b496bd3ae5f8a966b4" > cdiv< / a > < / div > < div class = "ttdeci" > complex cdiv(complex a, complex z)< / div > < div class = "ttdoc" > Division of two complex numbers. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "prim_8c_source.html#l00170" > prim.c:170< / a > < / div > < / div >
< div class = "ttc" id = "complex_8h_html_a888b8eb5ccc46411e68f6d7b99035888" > < div class = "ttname" > < a href = "complex_8h.html#a888b8eb5ccc46411e68f6d7b99035888" > clog< / a > < / div > < div class = "ttdeci" > complex clog(complex z)< / div > < div class = "ttdoc" > Natural logarithm of a complex number. < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "clog_8c_source.html#l00046" > clog.c:46< / a > < / div > < / div >
< div class = "ttc" id = "ktan_8c_html_a7cf126dbeb6f30c606e3b42fea65cfef" > < div class = "ttname" > < a href = "ktan_8c.html#a7cf126dbeb6f30c606e3b42fea65cfef" > one< / a > < / div > < div class = "ttdeci" > #define one< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "ktan_8c_source.html#l00064" > ktan.c:64< / 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 > <!-- fragment -->
< p > < div class = "dynheader" >
Here is the call graph for this function:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_cgraph.png" border = "0" usemap = "#cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_cgraph" alt = "" / > < / div >
< map name = "cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_cgraph" id = "cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_cgraph" >
< area shape = "rect" id = "node2" href = "prim_8c.html#aa334a54c40e3eeb301f2a510a7675070" title = "Addition of two complex numbers. " alt = "" coords = "211,92,262,118" / >
< area shape = "rect" id = "node3" href = "prim_8c.html#a980e6e049f7902b05fc9eb5614b07a5c" title = "Pack two real numbers into a complex number. " alt = "" coords = "312,92,369,118" / >
< area shape = "rect" id = "node6" href = "prim_8c.html#afeb504d8fe89e8fc7dea6e6592af70f6" title = "Division of two complex numbers. " alt = "" coords = "213,142,260,169" / >
< area shape = "rect" id = "node7" href = "clog_8c.html#a888b8eb5ccc46411e68f6d7b99035888" title = "Natural logarithm of a complex number. " alt = "" coords = "113,320,159,346" / >
< area shape = "rect" id = "node13" href = "prim_8c.html#a71e6e973f5b98b4c9140c0d374d9223d" title = "Multiplication of two complex numbers. " alt = "" coords = "211,193,262,220" / >
< area shape = "rect" id = "node14" href = "csqrt_8c.html#afe5b814a44414f20d0f98fe974737edd" title = "Square root of complex number. " alt = "" coords = "111,421,161,448" / >
< area shape = "rect" id = "node15" href = "prim_8c.html#a9bebe3fb8e9e03dbe04a2ecedbe4a114" title = "Subtraction of two complex numbers. " alt = "" coords = "211,244,262,270" / >
< area shape = "rect" id = "node4" href = "prim_8c.html#a4a236b24c0197821e3489a35a72079ab" title = "Real part of complex number. " alt = "" coords = "315,218,366,245" / >
< area shape = "rect" id = "node5" href = "prim_8c.html#aa1fe0b9371befabef6c41ba73470774a" title = "Imaginary part of complex number. " alt = "" coords = "312,269,369,296" / >
< area shape = "rect" id = "node8" href = "prim_8c.html#af6e02ba9d2566b52e3b0faf2d4ed973a" title = "Absolute value of complex number. " alt = "" coords = "211,446,262,473" / >
< area shape = "rect" id = "node11" href = "atan2_8c.html#a349377202ca14f79eb335b1a421fe4d8" title = "atan2" alt = "" coords = "209,497,264,524" / >
< area shape = "rect" id = "node9" href = "hypot_8c.html#a6d6a905f61d535f8454190433b8c0ea5" title = "hypot" alt = "" coords = "313,446,368,473" / >
< area shape = "rect" id = "node10" href = "sqrt_8c.html#ab87521a75ef827a85807f89a6c10629a" title = "Square root function. " alt = "" coords = "417,522,461,549" / >
< area shape = "rect" id = "node12" href = "atan_8c.html#a1e2f8f6d64eaa95131bc63fee34970ea" title = "Inverse trigonometric tangent function. " alt = "" coords = "317,497,364,524" / >
< / map >
< / div >
< / p >
< p > < div class = "dynheader" >
Here is the caller graph for this function:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_icgraph.png" border = "0" usemap = "#cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_icgraph" alt = "" / > < / div >
< map name = "cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_icgraph" id = "cacsc_8c_aa8a49b2418f7bbcf0a8f72a15fbb4984_icgraph" >
< area shape = "rect" id = "node2" href = "structComplexNumber.html#a904a9af5470b037c1931d7d090410c94" title = "ComplexNumber::ArcCosecant" alt = "" coords = "111,5,315,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 = "cacsc_8c.html" > cacsc.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 >