<ahref="ccos_8c.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/* $NetBSD: ccos.c,v 1.1 2007/08/20 16:01:32 drochner Exp $ */</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> </div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">/*</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> * Copyright (c) 2007 The NetBSD Foundation, Inc.</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * All rights reserved.</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment"> * This code is derived from software written by Stephen L. Moshier.</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment"> * It is redistributed by the NetBSD Foundation by permission of the author.</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * are met:</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <
<divclass="ttc"id="prim_8c_html_a980e6e049f7902b05fc9eb5614b07a5c"><divclass="ttname"><ahref="prim_8c.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>
<divclass="ttc"id="prim_8c_html_aa1fe0b9371befabef6c41ba73470774a"><divclass="ttname"><ahref="prim_8c.html#aa1fe0b9371befabef6c41ba73470774a">cimag</a></div><divclass="ttdeci">double cimag(complex z)</div><divclass="ttdoc">Imaginary part of complex number. </div><divclass="ttdef"><b>Definition:</b><ahref="prim_8c_source.html#l00047">prim.c:47</a></div></div>
<divclass="ttc"id="prim_8c_html_a4a236b24c0197821e3489a35a72079ab"><divclass="ttname"><ahref="prim_8c.html#a4a236b24c0197821e3489a35a72079ab">creal</a></div><divclass="ttdeci">double creal(complex z)</div><divclass="ttdoc">Real part of complex number. </div><divclass="ttdef"><b>Definition:</b><ahref="prim_8c_source.html#l00038">prim.c:38</a></div></div>
<divclass="ttc"id="ccos_8c_html_a68da54d02ea0d55bb90dcb06f56d10f5"><divclass="ttname"><ahref="ccos_8c.html#a68da54d02ea0d55bb90dcb06f56d10f5">ccos</a></div><divclass="ttdeci">complex ccos(complex z)</div><divclass="ttdoc">Cosine of complex number. </div><divclass="ttdef"><b>Definition:</b><ahref="ccos_8c_source.html#l00051">ccos.c:51</a></div></div>
<divclass="ttc"id="sin_8c_html_aad4af25633b071b0e2cdb8ebd87eca77"><divclass="ttname"><ahref="sin_8c.html#aad4af25633b071b0e2cdb8ebd87eca77">sin</a></div><divclass="ttdeci">double sin(double x)</div><divclass="ttdoc">Trigonometric sine function. </div><divclass="ttdef"><b>Definition:</b><ahref="sin_8c_source.html#l00087">sin.c:87</a></div></div>