<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-menu-disabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-os vector-sticky-header-enabled skin-theme-clientpref-thumb-standard" lang="uk" dir="ltr"><head>
    <meta charset="UTF-8">
    <title>Complex.h</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="./_res_/favicon.png">
    <link rel="canonical" href="https://uk.wikipedia.org/wiki/Complex.h"> <link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
    <meta name="ResourceLoaderDynamicStyles" content="">
    
    <link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
    <link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
    <link rel="stylesheet" type="text/css" href="./_res_/footer.css">
    <link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
  </head>
  <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Complex_h rootpage-Complex_h skin-vector-2022 action-view">
    <div class="mw-page-container">
      <div class="mw-page-container-inner">
        <div class="mw-content-container">
          <main id="content" class="mw-body">
            <header class="mw-body-header vector-page-titlebar">
              <h1 id="firstHeading" class="firstHeading mw-first-heading">complex.h</h1>
            </header>
            <a id="top"></a>
            <div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
              <div id="contentSub">
                <div id="mw-content-subtitle"></div>
              </div>
              <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="uk" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="uk" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r44188005">
/* start https://uk.wikipedia.org/ */


.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}


/* end   https://uk.wikipedia.org/ */
</style><table class="sidebar nomobile nowraplinks" role="navigation" style="width: auto;"><tbody><tr><th class="sidebar-heading">
<a href="%D0%A1%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D0%B0_%D0%B1%D1%96%D0%B1%D0%BB%D1%96%D0%BE%D1%82%D0%B5%D0%BA%D0%B0_%D0%BC%D0%BE%D0%B2%D0%B8_C" title="Стандартна бібліотека мови C">Заголовні файли C</a></th></tr><tr><td class="sidebar-content" style="text-align: left;">
<ul><li><a href="Assert.h" title="Assert.h">assert.h</a></li>
<li><a class="mw-selflink selflink">complex.h</a></li>
<li><a href="Ctype.h" title="Ctype.h">ctype.h</a></li>
<li><a href="Errno.h" title="Errno.h">errno.h</a></li>
<li><a href="Fenv.h" title="Fenv.h">fenv.h</a></li>
<li><a href="Float.h" title="Float.h">float.h</a></li>
<li><a href="Inttypes.h" title="Inttypes.h">inttypes.h</a></li>
<li><a href="Iso646.h" title="Iso646.h">iso646.h</a></li>
<li><a href="Limits.h" title="Limits.h">limits.h</a></li>
<li><a href="Locale.h" title="Locale.h">locale.h</a></li>
<li><a href="Math.h" title="Math.h">math.h</a></li>
<li>setjmp.h</li>
<li><a href="Signal.h" title="Signal.h">signal.h</a></li>
<li>stdarg.h</li>
<li><a href="Stdbool.h" title="Stdbool.h">stdbool.h</a></li>
<li><a href="Stddef.h" title="Stddef.h">stddef.h</a></li>
<li><a href="Stdint.h" title="Stdint.h">stdint.h</a></li>
<li><a href="Stdio.h" title="Stdio.h">stdio.h</a></li>
<li>stdlib.h</li>
<li><a href="String.h" title="String.h">string.h</a></li>
<li>tgmath.h</li>
<li><a href="Time.h" title="Time.h">time.h</a></li>
<li><a href="Wchar.h" title="Wchar.h">wchar.h</a></li>
<li><a href="Wctype.h" title="Wctype.h">wctype.h</a></li></ul></td>
</tr></tbody></table>
<p><b>complex.h</b> — <a href="%D0%97%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BD%D0%B8%D0%B9_%D1%84%D0%B0%D0%B9%D0%BB" title="Заголовний файл">заголовний файл</a> <a href="%D0%A1%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%BD%D0%B0_%D0%B1%D1%96%D0%B1%D0%BB%D1%96%D0%BE%D1%82%D0%B5%D0%BA%D0%B0_%D0%A1" class="mw-redirect" title="Стандартна бібліотека С">стандартної бібліотеки</a> <a href="%D0%A1_(%D0%BC%D0%BE%D0%B2%D0%B0_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F)" class="mw-redirect" title="С (мова програмування)">мови програмування С</a>, в якому оголошуються функції для <a href="%D0%9A%D0%BE%D0%BC%D0%BF%D0%BB%D0%B5%D0%BA%D1%81%D0%BD%D1%96_%D1%87%D0%B8%D1%81%D0%BB%D0%B0" class="mw-redirect" title="Комплексні числа">комплексної арифметики</a>. Ці функції використовують вбудований тип <code>complex</code>, котрий з'явився у стандарті <a href="C99" title="C99">C99</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Оголошені_функції"><span id=".D0.9E.D0.B3.D0.BE.D0.BB.D0.BE.D1.88.D0.B5.D0.BD.D1.96_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Оголошені функції</h2></div>
<p>У заголовному файлі <code>complex.h</code> оголошуються такі функції (аргументи тригонометричних функцій у <a href="%D0%A0%D0%B0%D0%B4%D1%96%D0%B0%D0%BD" title="Радіан">радіанах</a>):
</p>
<table class="wikitable">

<tbody><tr>
<td><code>double               cabs(double complex);</code></td>
<td>Complex magnitude (double)
</td></tr>
<tr>
<td><code>float                cabsf(float complex);</code></td>
<td>Complex magnitude (float)
</td></tr>
<tr>
<td><code>long double          cabsl(long double complex);</code></td>
<td>Complex magnitude (long double)
</td></tr>
<tr>
<td><code>double complex       cacos(double complex);</code></td>
<td>Complex inverse cosine (double)
</td></tr>
<tr>
<td><code>float complex        cacosf(float complex);</code></td>
<td>Complex inverse cosine (float)
</td></tr>
<tr>
<td><code>double complex       cacosh(double complex);</code></td>
<td>Complex inverse hyperbolic cosine (double)
</td></tr>
<tr>
<td><code>float complex        cacoshf(float complex);</code></td>
<td>Complex inverse hyperbolic cosine (float)
</td></tr>
<tr>
<td><code>long double complex  cacoshl(long double complex);</code></td>
<td>Complex inverse hyperbolic cosine (long double)
</td></tr>
<tr>
<td><code>long double complex  cacosl(long double complex);</code></td>
<td>Complex inverse cosine (long double)
</td></tr>
<tr>
<td><code>double               carg(double complex);</code></td>
<td>Complex argument (double)
</td></tr>
<tr>
<td><code>float                cargf(float complex);</code></td>
<td>Complex argument (float)
</td></tr>
<tr>
<td><code>long double          cargl(long double complex);</code></td>
<td>Complex argument (long double)
</td></tr>
<tr>
<td><code>double complex       casin(double complex);</code></td>
<td>Complex inverse sine (double)
</td></tr>
<tr>
<td><code>float complex        casinf(float complex);</code></td>
<td>Complex inverse sine (float)
</td></tr>
<tr>
<td><code>double complex       casinh(double complex);</code></td>
<td>Complex inverse hyperbolic sine (double)
</td></tr>
<tr>
<td><code>float complex        casinhf(float complex);</code></td>
<td>Complex inverse hyperbolic sine (float)
</td></tr>
<tr>
<td><code>long double complex  casinhl(long double complex);</code></td>
<td>Complex inverse hyperbolic sine (long double)
</td></tr>
<tr>
<td><code>long double complex  casinl(long double complex);</code></td>
<td>Complex inverse sine (long double)
</td></tr>
<tr>
<td><code>double complex       catan(double complex);</code></td>
<td>Complex inverse tangent (double)
</td></tr>
<tr>
<td><code>float complex        catanf(float complex);</code></td>
<td>Complex inverse tan (float)
</td></tr>
<tr>
<td><code>double complex       catanh(double complex);</code></td>
<td>Complex inverse hyperbolic tangent (double)
</td></tr>
<tr>
<td><code>float complex        catanhf(float complex);</code></td>
<td>Complex inverse hyperbolic tan (float)
</td></tr>
<tr>
<td><code>long double complex  catanhl(long double complex);</code></td>
<td>Complex inverse hyperbolic tan (long double)
</td></tr>
<tr>
<td><code>long double complex  catanl(long double complex);</code></td>
<td>Complex inverse tan (long double)
</td></tr>
<tr>
<td><code>double complex       ccos(double complex);</code></td>
<td>Complex cosine (double)
</td></tr>
<tr>
<td><code>float complex        ccosf(float complex);</code></td>
<td>Complex cosine (float)
</td></tr>
<tr>
<td><code>double complex       ccosh(double complex);</code></td>
<td>Complex hyperbolic cosine (double)
</td></tr>
<tr>
<td><code>float complex        ccoshf(float complex);</code></td>
<td>Complex hyperbolic cosine (float)
</td></tr>
<tr>
<td><code>long double complex  ccoshl(long double complex);</code></td>
<td>Complex hyperbolic cosine (long double)
</td></tr>
<tr>
<td><code>long double complex  ccosl(long double complex);</code></td>
<td>Complex cosine (long double)
</td></tr>
<tr>
<td><code>double complex       cexp(double complex);</code></td>
<td>Complex exponential (double)
</td></tr>
<tr>
<td><code>float complex        cexpf(float complex);</code></td>
<td>Complex exponential (float)
</td></tr>
<tr>
<td><code>long double complex  cexpl(long double complex);</code></td>
<td>Complex exponential (long double)
</td></tr>
<tr>
<td><code>double               cimag(double complex);</code></td>
<td>Imaginary part of complex number (double)
</td></tr>
<tr>
<td><code>float                cimagf(float complex);</code></td>
<td>Imaginary part of complex number (float)
</td></tr>
<tr>
<td><code>long double          cimagl(long double complex);</code></td>
<td>Imaginary part of complex number (long double)
</td></tr>
<tr>
<td><code>double complex       clog(double complex);</code></td>
<td>Complex logarithm (double)
</td></tr>
<tr>
<td><code>float complex        clogf(float complex);</code></td>
<td>Complex logarithm (float)
</td></tr>
<tr>
<td><code>long double complex  clogl(long double complex);</code></td>
<td>Complex logarithm (long double)
</td></tr>
<tr>
<td><code>double complex       conj(double complex);</code></td>
<td>Complex conjugate (double)
</td></tr>
<tr>
<td><code>float complex        conjf(float complex);</code></td>
<td>Complex conjugate (float)
</td></tr>
<tr>
<td><code>long double complex  conjl(long double complex);</code></td>
<td>Complex conjugate (long double)
</td></tr>
<tr>
<td><code>double complex       cpow(double complex, double complex);</code></td>
<td>Complex power (double)
</td></tr>
<tr>
<td><code>float complex        cpowf(float complex, float complex);</code></td>
<td>Complex power (float)
</td></tr>
<tr>
<td><code>long double complex  cpowl(long double complex, long double complex);</code></td>
<td>Complex power (long double)
</td></tr>
<tr>
<td><code>double complex       cproj(double complex);</code></td>
<td>Complex projection (double)
</td></tr>
<tr>
<td><code>float complex        cprojf(float complex);</code></td>
<td>complex projection (float)
</td></tr>
<tr>
<td><code>long double complex  cprojl(long double complex);</code></td>
<td>Complex projection (long double)
</td></tr>
<tr>
<td><code>double               creal(double complex);</code></td>
<td>Imaginary number real part (double)
</td></tr>
<tr>
<td><code>float                crealf(float complex);</code></td>
<td>Imaginary number real part (float)
</td></tr>
<tr>
<td><code>long double          creall(long double complex);</code></td>
<td>Imaginary number real part (long double)
</td></tr>
<tr>
<td><code>double complex       csin(double complex);</code></td>
<td>Complex sine (double)
</td></tr>
<tr>
<td><code>float complex        csinf(float complex);</code></td>
<td>Complex sine (float)
</td></tr>
<tr>
<td><code>double complex       csinh(double complex);</code></td>
<td>Complex hyperbolic sine (double)
</td></tr>
<tr>
<td><code>float complex        csinhf(float complex);</code></td>
<td>Complex hyperbolic sine (float)
</td></tr>
<tr>
<td><code>long double complex  csinhl(long double complex);</code></td>
<td>Complex hyperbolic sine (long double)
</td></tr>
<tr>
<td><code>long double complex  csinl(long double complex);</code></td>
<td>Complex sine (long double)
</td></tr>
<tr>
<td><code>double complex       csqrt(double complex);</code></td>
<td>Complex square root (double)
</td></tr>
<tr>
<td><code>float complex        csqrtf(float complex);</code></td>
<td>Complex square root (float)
</td></tr>
<tr>
<td><code>long double complex  csqrtl(long double complex);</code></td>
<td>Complex square root (long double)
</td></tr>
<tr>
<td><code>double complex       ctan(double complex);</code></td>
<td>Complex tangent (double)
</td></tr>
<tr>
<td><code>float complex        ctanf(float complex);</code></td>
<td>Complex tangent (float)
</td></tr>
<tr>
<td><code>double complex       ctanh(double complex);</code></td>
<td>Complex hyperbolic tangent (double)
</td></tr>
<tr>
<td><code>float complex        ctanhf(float complex);</code></td>
<td>Complex hyperbolic tangent (float)
</td></tr>
<tr>
<td><code>long double complex  ctanhl(long double complex);</code></td>
<td>Complex hyperbolic tangent (long double)
</td></tr>
<tr>
<td><code>long double complex  ctanl(long double complex);</code></td>
<td>Complex tangent (long double)
</td></tr>
</tbody></table>
<div class="mw-heading mw-heading2"><h2 id="Посилання"><span id=".D0.9F.D0.BE.D1.81.D0.B8.D0.BB.D0.B0.D0.BD.D0.BD.D1.8F"></span>Посилання</h2></div>
<p><a rel="nofollow" class="external text" href="http://www.opengroup.org/onlinepubs/009695399/basedefs/complex.h.html">complex.h</a> <small>[<a rel="nofollow" class="external text" href="https://web.archive.org/web/20080706223506/http://www.opengroup.org/onlinepubs/009695399/basedefs/complex.h.html">Архівовано</a> 6 липня 2008 у <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>.]</small> на OpenGroup
</p></div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2022-04-22" href="https://uk.wikipedia.org/wiki/?title=Complex.h&amp;oldid=35400627">Вікіпедія</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.uk">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
            </div>
          </main>
        </div>
      </div>
    </div>
     <script src="./_webp_/webpHandler.js"></script>
  

</body></html>