<!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>Math.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/Math.h"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.math.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
    <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-Math_h rootpage-Math_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">math.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 href="Complex.h" title="Complex.h">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 class="mw-selflink selflink">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>math.h</b>&nbsp;— заголовний файл <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="C_(%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)" title="C (мова програмування)">мови програмування С</a>, який надає <a href="%D0%9F%D1%80%D0%BE%D1%82%D0%BE%D1%82%D0%B8%D0%BF_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Прототип функції">прототипи функцій</a>, розроблених для виконання простих математичних операцій. Більшість <a href="%D0%9F%D1%96%D0%B4%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%B0" title="Підпрограма">функцій</a> використовує <a href="%D0%A7%D0%B8%D1%81%D0%BB%D0%BE_%D0%B7_%D1%80%D1%83%D1%85%D0%BE%D0%BC%D0%BE%D1%8E_%D0%BA%D0%BE%D0%BC%D0%BE%D1%8E" title="Число з рухомою комою">числа з рухомою комою</a>. <a href="C%2B%2B" title="C++">C++</a> також реалізовує дані функції для забезпечення сумісності, усі вони містяться у заголовному файлі <code>cmath</code>.
</p><p>Усі функції, котрі приймають або повертають значення <a href="%D0%9A%D1%83%D1%82" title="Кут">кута</a>, працюють з <a href="%D0%A0%D0%B0%D0%B4%D1%96%D0%B0%D0%BD" title="Радіан">радіанами</a>.
</p><p>В C99 більшість функцій має кілька варіантів залежно від типу, наприклад:
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">float</span><span class="w"> </span><span class="nf">cosf</span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="n">x</span><span class="p">);</span>
<span class="kt">double</span><span class="w"> </span><span class="nf">cos</span><span class="p">(</span><span class="kt">double</span><span class="w"> </span><span class="n">x</span><span class="p">);</span>
<span class="kt">long</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="nf">cosl</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">x</span><span class="p">);</span>
</pre></div>
<p>Всі ці функції обчислюють <a href="%D0%9A%D0%BE%D1%81%D0%B8%D0%BD%D1%83%D1%81" class="mw-redirect" title="Косинус">косинус</a>, але з різними типами чисел з рухомою комою. Функції, що закінчуються на f, працюють з float, на l&nbsp;— з long double.
</p><p>Також у C99 додана стандартна бібліотека tgmath.h, що містить узагальнені макроси, що мають такі самі назви, що й функція для double, і підставляють потрібну функцію залежно від типу.
</p><p>В C++ ці функції <a href="%D0%9F%D0%B5%D1%80%D0%B5%D0%B2%D0%B0%D0%BD%D1%82%D0%B0%D0%B6%D0%B5%D0%BD%D0%BD%D1%8F_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Перевантаження функції">перевантажені</a> для різних типів. Також існують перевантаження цих функцій в бібліотеках <a href="Complex.h" title="Complex.h">complex.h</a> та valarray для відповідних типів.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>

<div class="mw-heading mw-heading2"><h2 id="Функції"><span id=".D0.A4.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Функції</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Тригонометричні_функції"><span id=".D0.A2.D1.80.D0.B8.D0.B3.D0.BE.D0.BD.D0.BE.D0.BC.D0.B5.D1.82.D1.80.D0.B8.D1.87.D0.BD.D1.96_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Тригонометричні функції</h3></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Опис
</th></tr>
<tr>
<td><code>double acos(double x)</code></td>
<td><a href="%D0%9E%D0%B1%D0%B5%D1%80%D0%BD%D0%B5%D0%BD%D1%96_%D1%82%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Обернені тригонометричні функції">арккосинус</a>. Якщо параметр не в інтервалі [-1..+1], виникає помилка
</td></tr>
<tr>
<td><code>double asin(double x)</code></td>
<td><a href="%D0%9E%D0%B1%D0%B5%D1%80%D0%BD%D0%B5%D0%BD%D1%96_%D1%82%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Обернені тригонометричні функції">арксинус</a>. Якщо параметр не в інтервалі [-1..+1], виникає помилка
</td></tr>
<tr>
<td><code>double atan(double x)</code></td>
<td><a href="%D0%9E%D0%B1%D0%B5%D1%80%D0%BD%D0%B5%D0%BD%D1%96_%D1%82%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Обернені тригонометричні функції">арктангенс</a>
</td></tr>
<tr>
<td><code>double atan2(double y, double x)</code></td>
<td>арктангенс <a href="%D0%A7%D0%B0%D1%81%D1%82%D0%BA%D0%B0_(%D0%BC%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)" title="Частка (математика)">частки</a> від ділення двох аргументів y та x. Якщо обидва параметри дорівнюють 0, виникає помилка. На відміну від atan, може обчислити значення кута <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi /2}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>π<!-- π --></mi>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mn>2</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle \pi /2}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/2b44e3d874a0b229fded7ffce67a0677dd5b8b67.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.657ex; height:2.843ex;" alt="{\displaystyle \pi /2}" loading="lazy"></span> (для якого значення тангенса буде нескінченим). Зручна для обчислення кута за координатами.
</td></tr>
<tr>
<td><code>double cos(double x)</code></td>
<td><a href="%D0%A2%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Тригонометричні функції">косинус</a>
</td></tr>
<tr>
<td><code>double <a href="Sin" class="mw-redirect" title="Sin">sin</a>(double x)</code></td>
<td><a href="%D0%A2%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Тригонометричні функції">синус</a>
</td></tr>
<tr>
<td><code>double tan(double x)</code></td>
<td><a href="%D0%A2%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Тригонометричні функції">тангенс</a>
</td></tr>
</tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Гіперболічні_тригонометричні_функції"><span id=".D0.93.D1.96.D0.BF.D0.B5.D1.80.D0.B1.D0.BE.D0.BB.D1.96.D1.87.D0.BD.D1.96_.D1.82.D1.80.D0.B8.D0.B3.D0.BE.D0.BD.D0.BE.D0.BC.D0.B5.D1.82.D1.80.D0.B8.D1.87.D0.BD.D1.96_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Гіперболічні тригонометричні функції</h3></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Стандарт</th>
<th>Опис
</th></tr>
<tr>
<td><code>double <a href="Cosh" class="mw-redirect" title="Cosh">cosh</a>(double x)</code></td>
<td>C89, C++98</td>
<td><a href="%D0%93%D1%96%D0%BF%D0%B5%D1%80%D0%B1%D0%BE%D0%BB%D1%96%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Гіперболічні функції">гіперболічний косинус</a>
</td></tr>
<tr>
<td><code>double <a href="Sinh" class="mw-redirect" title="Sinh">sinh</a>(double x)</code></td>
<td>C89, C++98</td>
<td><a href="%D0%93%D1%96%D0%BF%D0%B5%D1%80%D0%B1%D0%BE%D0%BB%D1%96%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Гіперболічні функції">гіперболічний синус</a>
</td></tr>
<tr>
<td><code>double <a href="Tanh" class="mw-redirect" title="Tanh">tanh</a>(double x)</code></td>
<td>C89, C++98</td>
<td><a href="%D0%93%D1%96%D0%BF%D0%B5%D1%80%D0%B1%D0%BE%D0%BB%D1%96%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Гіперболічні функції">гіперболічний тангенс</a>
</td></tr>
<tr>
<td><code>double acosh(double x)</code></td>
<td>C99, C++11</td>
<td><a href="%D0%9E%D0%B1%D0%B5%D1%80%D0%BD%D0%B5%D0%BD%D1%96_%D0%B3%D1%96%D0%BF%D0%B5%D1%80%D0%B1%D0%BE%D0%BB%D1%96%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Обернені гіперболічні функції">гіперболічний арккосинус</a>
</td></tr>
<tr>
<td><code>double asinh(double x)</code></td>
<td>C99, C++11</td>
<td><a href="%D0%9E%D0%B1%D0%B5%D1%80%D0%BD%D0%B5%D0%BD%D1%96_%D0%B3%D1%96%D0%BF%D0%B5%D1%80%D0%B1%D0%BE%D0%BB%D1%96%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Обернені гіперболічні функції">гіперболічний арксинус</a>
</td></tr>
<tr>
<td><code>double atanh(double x)</code></td>
<td>C99, C++11</td>
<td><a href="%D0%9E%D0%B1%D0%B5%D1%80%D0%BD%D0%B5%D0%BD%D1%96_%D0%B3%D1%96%D0%BF%D0%B5%D1%80%D0%B1%D0%BE%D0%BB%D1%96%D1%87%D0%BD%D1%96_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97" title="Обернені гіперболічні функції">гіперболічний арктангенс</a>
</td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Показникові_функції"><span id=".D0.9F.D0.BE.D0.BA.D0.B0.D0.B7.D0.BD.D0.B8.D0.BA.D0.BE.D0.B2.D1.96_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Показникові функції</h3></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Стандарт</th>
<th>Опис
</th></tr>
<tr>
<td><code>double <a href="Exp" class="mw-redirect" title="Exp">exp</a>(double x)</code></td>
<td>C89, C++98</td>
<td><a href="%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%BD%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0_%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%8F" title="Показникова функція">Показникова функція</a> з основою <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/cd253103f0876afc68ebead27a5aa9867d927467.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.083ex; height:1.676ex;" alt="{\displaystyle e}" loading="lazy"></span> (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e^{x}}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <msup>
          <mi>e</mi>
          <mrow class="MJX-TeXAtom-ORD">
            <mi>x</mi>
          </mrow>
        </msup>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e^{x}}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/841c0d168e64191c45a45e54c7e447defd17ec6a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.256ex; height:2.343ex;" alt="{\displaystyle e^{x}}" loading="lazy"></span>)
</td></tr>
<tr>
<td><code>double ldexp(double x, int exp)</code></td>
<td>C89, C++98</td>
<td>Обчислення числа з рухомою комою з мантиси та порядку, повертає <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\cdot 2^{exp}}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>x</mi>
        <mo>⋅<!-- ⋅ --></mo>
        <msup>
          <mn>2</mn>
          <mrow class="MJX-TeXAtom-ORD">
            <mi>e</mi>
            <mi>x</mi>
            <mi>p</mi>
          </mrow>
        </msup>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle x\cdot 2^{exp}}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/9bfeaf32e7d84d7e5499a12572596b9eed23dde0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.937ex; height:2.343ex;" alt="{\displaystyle x\cdot 2^{exp}}" loading="lazy"></span>
</td></tr>
<tr>
<td><code>double exp2(double x)</code></td>
<td>C99, C++11</td>
<td>Показникова функція з основою <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>2</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 2}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/901fc910c19990d0dbaaefe4726ceb1a4e217a0f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.162ex; height:2.176ex;" alt="{\displaystyle 2}" loading="lazy"></span> (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2^{x}}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <msup>
          <mn>2</mn>
          <mrow class="MJX-TeXAtom-ORD">
            <mi>x</mi>
          </mrow>
        </msup>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 2^{x}}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/5514b506cd3af97484bca3e166965ac4cef27a02.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.335ex; height:2.343ex;" alt="{\displaystyle 2^{x}}" loading="lazy"></span>)
</td></tr>
<tr>
<td><code>double expm1(double x)</code></td>
<td>C99, C++11</td>
<td>Показникова функція з основою <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/cd253103f0876afc68ebead27a5aa9867d927467.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.083ex; height:1.676ex;" alt="{\displaystyle e}" loading="lazy"></span> мінус 1 (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e^{x}-1}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <msup>
          <mi>e</mi>
          <mrow class="MJX-TeXAtom-ORD">
            <mi>x</mi>
          </mrow>
        </msup>
        <mo>−<!-- − --></mo>
        <mn>1</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e^{x}-1}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/9098adf157cfb3697609aaa10d9e3b4ec875d1a0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:6.259ex; height:2.509ex;" alt="{\displaystyle e^{x}-1}" loading="lazy"></span>)
</td></tr>
<tr>
<td><code>double scalbn(double x, int exp)</code></td>
<td>C99, C++11</td>
<td>Обчислення числа з рухомою комою з мантиси та порядку для основи FLT_RADIX (<a href="Float.h" title="Float.h">float.h</a>), повертає <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\cdot }">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>x</mi>
        <mo>⋅<!-- ⋅ --></mo>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle x\cdot }</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/9d32cd5acd825a1a49311ea3b0b66492397fdb2a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.977ex; height:1.676ex;" alt="{\displaystyle x\cdot }" loading="lazy"></span>FLT_RADIX<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle ^{exp}}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <msup>
          <mi></mi>
          <mrow class="MJX-TeXAtom-ORD">
            <mi>e</mi>
            <mi>x</mi>
            <mi>p</mi>
          </mrow>
        </msup>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle ^{exp}}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/b2efcf5163fc5daf7a7de8ba3f316092b0147b7d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:2.766ex; height:2.176ex;" alt="{\displaystyle ^{exp}}" loading="lazy"></span>; зазвичай еквівалент ldexp.
</td></tr>
<tr>
<td><code>double scalbln(double x, long int exp)</code></td>
<td>C99, C++11</td>
<td>Те саме, що й scalbn, з порядком типу long int.
</td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Логарифмічні_функції"><span id=".D0.9B.D0.BE.D0.B3.D0.B0.D1.80.D0.B8.D1.84.D0.BC.D1.96.D1.87.D0.BD.D1.96_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Логарифмічні функції</h3></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Стандарт</th>
<th>Опис
</th></tr>
<tr>
<td><code>double <a href="Log" class="mw-disambig" title="Log">log</a>(double x)</code></td>
<td>C89, C++98</td>
<td><a href="%D0%9D%D0%B0%D1%82%D1%83%D1%80%D0%B0%D0%BB%D1%8C%D0%BD%D0%B8%D0%B9_%D0%BB%D0%BE%D0%B3%D0%B0%D1%80%D0%B8%D1%84%D0%BC" title="Натуральний логарифм">Натуральний логарифм</a> x
</td></tr>
<tr>
<td><code>double log10(double x)</code></td>
<td>C89, C++98</td>
<td><a href="%D0%94%D0%B5%D1%81%D1%8F%D1%82%D0%BA%D0%BE%D0%B2%D0%B8%D0%B9_%D0%BB%D0%BE%D0%B3%D0%B0%D1%80%D0%B8%D1%84%D0%BC" title="Десятковий логарифм">Логарифм за основою 10</a> від x
</td></tr>
<tr>
<td><code>double frexp(double x, int* exp)</code></td>
<td>C89, C++98</td>
<td>Розкладає число x на мантису з проміжку [0.5,1) та двійковий порядок, який записує за адресою exp.
</td></tr>
<tr>
<td><code>double log2(double x)</code></td>
<td>C99, C++11</td>
<td>Логарифм за основою 2 від x
</td></tr>
<tr>
<td><code>double logb(double x)</code></td>
<td>C99, C++11</td>
<td>Логарифм за основою FLT_RADIX (зазвичай 2) від x
</td></tr>
<tr>
<td><code>double log1p(double x)</code></td>
<td>C99, C++11</td>
<td>Натуральний логарифм від x+1
</td></tr>
<tr>
<td><code>int ilogb(double x)</code></td>
<td>C99, C++11</td>
<td>Ціла частина логарифму за основою FLT_RADIX
</td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Інші_функції"><span id=".D0.86.D0.BD.D1.88.D1.96_.D1.84.D1.83.D0.BD.D0.BA.D1.86.D1.96.D1.97"></span>Інші функції</h3></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Опис
</th></tr>
<tr>
<td><code>ceil</code></td>
<td><a href="%D0%9E%D0%BA%D1%80%D1%83%D0%B3%D0%BB%D0%B5%D0%BD%D0%BD%D1%8F" title="Округлення">округлення</a> до найближчого більшого <a href="%D0%A6%D1%96%D0%BB%D1%96_%D1%87%D0%B8%D1%81%D0%BB%D0%B0" class="mw-redirect" title="Цілі числа">цілого числа</a>
</td></tr>
<tr>
<td><code>fabs</code></td>
<td><a href="%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C_(%D0%BC%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)" title="Модуль (математика)">абсолютне значення</a>
</td></tr>
<tr>
<td><code>floor</code></td>
<td>округлення до найближчого меншого цілого числа
</td></tr>
<tr>
<td><code>fmod</code></td>
<td>повертає залишок від ділення двох чисел
</td></tr>
<tr>
<td><code>modf</code>(x, p)</td>
<td>повертає цілу та дробову частину аргументу <i>х</i> зі знаком
</td></tr>
<tr>
<td><code>pow(x,y)</code></td>
<td>вираховує значення <i>x<sup>y</sup></i>
</td></tr>
<tr>
<td><code><a href="Sqrt" class="mw-redirect" title="Sqrt">sqrt</a></code></td>
<td><a href="%D0%9A%D0%B2%D0%B0%D0%B4%D1%80%D0%B0%D1%82%D0%BD%D0%B8%D0%B9_%D0%BA%D0%BE%D1%80%D1%96%D0%BD%D1%8C" title="Квадратний корінь">квадратний корінь</a>
</td></tr></tbody></table>
<div class="mw-heading mw-heading2"><h2 id="Константи"><span id=".D0.9A.D0.BE.D0.BD.D1.81.D1.82.D0.B0.D0.BD.D1.82.D0.B8"></span>Константи</h2></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Опис
</th></tr>
<tr>
<td><code><a href="%D0%A7%D0%B8%D1%81%D0%BB%D0%BE_%D0%B7_%D1%80%D1%83%D1%85%D0%BE%D0%BC%D0%BE%D1%8E_%D0%BA%D0%BE%D0%BC%D0%BE%D1%8E" title="Число з рухомою комою">NAN</a></code></td>
<td>Не-число (not-a-number), особливе значення, що позначає результат помилкової операції
</td></tr>
<tr>
<td><code>HUGE_VAL</code></td>
<td>Особливе значення, що позначає, що результат надто великий для представлення обраним типом <a href="%D0%A7%D0%B8%D1%81%D0%BB%D0%BE_%D0%B7_%D1%80%D1%83%D1%85%D0%BE%D0%BC%D0%BE%D1%8E_%D0%BA%D0%BE%D0%BC%D0%BE%D1%8E" title="Число з рухомою комою">числа з рухомою комою</a>
</td></tr>
<tr>
<td><code><a href="%D0%A7%D0%B8%D1%81%D0%BB%D0%BE_%D0%B7_%D1%80%D1%83%D1%85%D0%BE%D0%BC%D0%BE%D1%8E_%D0%BA%D0%BE%D0%BC%D0%BE%D1%8E" title="Число з рухомою комою">INFINITY</a></code>(С++11)</td>
<td>Нескінченість, особливе значення, що позначає нескінчений результат
</td></tr>
<tr>
<td><code>HUGE_VALF</code>(С++11)</td>
<td>Аналог HUGE_VAL типу float
</td></tr>
<tr>
<td><code>HUGE_VALL</code>(С++11)</td>
<td>Аналог HUGE_VAL типу long double
</td></tr></tbody></table>
<p>Стандарт POSIX вимагає визначення деяких додаткових констант<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>, що починаються з M_. В <a href="Gcc" class="mw-redirect" title="Gcc">gcc</a> ці константи можна увімкнути ключем компіляції -std=gnu11 (gnu14, gnu17 і&nbsp;т.&nbsp;д.), у Visual Studio&nbsp;— визначенням макроса _USE_MATH_DEFINES перед включенням бібліотеки:
</p>
<div class="mw-highlight mw-highlight-lang-c++ mw-content-ltr" dir="ltr"><pre><span></span><span class="cp">#define _USE_MATH_DEFINES</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;cmath&gt;</span>
</pre></div>
<table class="wikitable">

<tbody><tr>
<th>Ім'я</th>
<th>Опис
</th></tr>
<tr>
<td><code>M_E</code></td>
<td><a href="E_(%D1%87%D0%B8%D1%81%D0%BB%D0%BE)" title="E (число)">Основа натуральних логарифмів <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/cd253103f0876afc68ebead27a5aa9867d927467.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.083ex; height:1.676ex;" alt="{\displaystyle e}" loading="lazy"></span></a>
</td></tr>
<tr>
<td><code>M_LOG2E</code></td>
<td>Логарифм <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/cd253103f0876afc68ebead27a5aa9867d927467.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.083ex; height:1.676ex;" alt="{\displaystyle e}" loading="lazy"></span> за основою 2 (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle log_{2}e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>l</mi>
        <mi>o</mi>
        <msub>
          <mi>g</mi>
          <mrow class="MJX-TeXAtom-ORD">
            <mn>2</mn>
          </mrow>
        </msub>
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle log_{2}e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/3b62a3266e401cfe97e44213429b023239760cea.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:5.068ex; height:2.509ex;" alt="{\displaystyle log_{2}e}" loading="lazy"></span>)
</td></tr>
<tr>
<td><code>M_LOG10E</code></td>
<td>Логарифм <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/cd253103f0876afc68ebead27a5aa9867d927467.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.083ex; height:1.676ex;" alt="{\displaystyle e}" loading="lazy"></span> за основою 10 (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle log_{10}e}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>l</mi>
        <mi>o</mi>
        <msub>
          <mi>g</mi>
          <mrow class="MJX-TeXAtom-ORD">
            <mn>10</mn>
          </mrow>
        </msub>
        <mi>e</mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle log_{10}e}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/05bfd4777113fba55965ec3e3f41a324191d8449.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:5.89ex; height:2.509ex;" alt="{\displaystyle log_{10}e}" loading="lazy"></span>)
</td></tr>
<tr>
<td><code>M_LN2</code></td>
<td>Натуральний логарифм <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>2</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 2}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/901fc910c19990d0dbaaefe4726ceb1a4e217a0f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.162ex; height:2.176ex;" alt="{\displaystyle 2}" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_LN10</code></td>
<td>Натуральний логарифм <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 10}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>10</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 10}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/4ec811eb07dcac7ea67b413c5665390a1671ecb0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.325ex; height:2.176ex;" alt="{\displaystyle 10}" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_PI</code></td>
<td><a href="%D0%A7%D0%B8%D1%81%D0%BB%D0%BE_%D0%BF%D1%96" title="Число пі">Число <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi }">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>π<!-- π --></mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle \pi }</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/9be4ba0bb8df3af72e90a0535fabcc17431e540a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.332ex; height:1.676ex;" alt="{\displaystyle \pi }" loading="lazy"></span></a>
</td></tr>
<tr>
<td><code>M_PI_2</code></td>
<td><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi /2}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>π<!-- π --></mi>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mn>2</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle \pi /2}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/2b44e3d874a0b229fded7ffce67a0677dd5b8b67.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.657ex; height:2.843ex;" alt="{\displaystyle \pi /2}" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_PI_4</code></td>
<td><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi /4}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mi>π<!-- π --></mi>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mn>4</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle \pi /4}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/1707aa0fec2c8ef008b9e30b6045fbf95dab9e20.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.657ex; height:2.843ex;" alt="{\displaystyle \pi /4}" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_1_PI</code></td>
<td><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1/\pi }">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>1</mn>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mi>π<!-- π --></mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 1/\pi }</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/295095b618f108f11bc4ac8f16c6d60ad192f221.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.657ex; height:2.843ex;" alt="{\displaystyle 1/\pi }" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_2_PI</code></td>
<td><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2/\pi }">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>2</mn>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mi>π<!-- π --></mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 2/\pi }</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/e5eff7f0c1780309e1d539f5a699693aedd5fcbc.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.657ex; height:2.843ex;" alt="{\displaystyle 2/\pi }" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_SQRTPI</code></td>
<td>Квадратний корінь з <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2/\pi }">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>2</mn>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mi>π<!-- π --></mi>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 2/\pi }</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/e5eff7f0c1780309e1d539f5a699693aedd5fcbc.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.657ex; height:2.843ex;" alt="{\displaystyle 2/\pi }" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_SQRT2</code></td>
<td>Квадратний корінь з <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>2</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 2}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/901fc910c19990d0dbaaefe4726ceb1a4e217a0f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.162ex; height:2.176ex;" alt="{\displaystyle 2}" loading="lazy"></span>
</td></tr>
<tr>
<td><code>M_SQRT1_2</code></td>
<td>Квадратний корінь з <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1/2}">
  <semantics>
    <mrow class="MJX-TeXAtom-ORD">
      <mstyle displaystyle="true" scriptlevel="0">
        <mn>1</mn>
        <mrow class="MJX-TeXAtom-ORD">
          <mo>/</mo>
        </mrow>
        <mn>2</mn>
      </mstyle>
    </mrow>
    <annotation encoding="application/x-tex">{\displaystyle 1/2}</annotation>
  </semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/e308a3a46b7fdce07cc09dcab9e8d8f73e37d935.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:3.487ex; height:2.843ex;" alt="{\displaystyle 1/2}" loading="lazy"></span>
</td></tr></tbody></table>
<div class="mw-heading mw-heading2"><h2 id="Примітки"><span id=".D0.9F.D1.80.D0.B8.D0.BC.D1.96.D1.82.D0.BA.D0.B8"></span>Примітки</h2></div>
<style data-mw-deduplicate="TemplateStyles:r43816068">
/* start https://uk.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end   https://uk.wikipedia.org/ */
</style><div class="reflist" style="list-style-type: decimal;">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r47771159">
/* start https://uk.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation:target{background-color:var(--background-color-progressive-subtle,#eaf3ff);color:inherit}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./_mw_/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./_mw_/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./_mw_/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ref-lang{font-size:85%;cursor:help;margin-left:0.2em;color:var(--color-subtle,#54595d)}.mw-parser-output .cs1-ref-lg{font-style:normal;cursor:help}.mw-parser-output .cs1-ref-lg-text{color:#252525;text-decoration:inherit;text-decoration-color:#252525}.mw-parser-output .cs1-ws-icon a{background:url("./_mw_/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#bf3c2c)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#bf3c2c)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}html.skin-theme-clientpref-night .mw-parser-output .cs1-ref-lg-text{color:#dadad6;text-decoration-color:#dadad6}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}html.skin-theme-clientpref-os .mw-parser-output .cs1-ref-lg-text{color:#dadad6;text-decoration-color:#dadad6}}


/* end   https://uk.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20190920130741/http://www.cplusplus.com/reference/cmath/cos/">| Опис функції cos(англ.)</a>. Архів <a rel="nofollow" class="external text" href="http://www.cplusplus.com/reference/cmath/cos/">оригіналу</a> за 20 вересня 2019<span class="reference-accessdate">. Процитовано 19 вересня 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=%7C+%D0%9E%D0%BF%D0%B8%D1%81+%D1%84%D1%83%D0%BD%D0%BA%D1%86%D1%96%D1%97+cos%28%D0%B0%D0%BD%D0%B3%D0%BB.%29&amp;rft_id=http%3A%2F%2Fwww.cplusplus.com%2Freference%2Fcmath%2Fcos%2F&amp;rfr_id=info%3Asid%2Fuk.wikipedia.org%3AMath.h" class="Z3988"></span></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text">[<cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20190917223029/https://pubs.opengroup.org/onlinepubs/009695399/basedefs/math.h.html">| math.h у стандарті POSIX[[англійська мова|англ.]] <i lang="en">(англ.)</i></a>. Архів <a rel="nofollow" class="external text" href="https://pubs.opengroup.org/onlinepubs/009695399/basedefs/math.h.html">оригіналу</a> за 17 вересня 2019<span class="reference-accessdate">. Процитовано 20 вересня 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=%7C+math.h+%D1%83+%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D1%96+POSIX%D0%B0%D0%BD%D0%B3%D0%BB.+%3Ci+lang%3D%22en%22%3E%28%D0%B0%D0%BD%D0%B3%D0%BB.%29%3C%2Fi%3E&amp;rft_id=https%3A%2F%2Fpubs.opengroup.org%2Fonlinepubs%2F009695399%2Fbasedefs%2Fmath.h.html&amp;rfr_id=info%3Asid%2Fuk.wikipedia.org%3AMath.h" class="Z3988"></span> <span class="cs1-visible-error citation-comment"><code class="cs1-code">{{cite web}}</code>: </span><span class="cs1-visible-error citation-comment">Назва URL містить вбудоване вікіпосилання (довідка)</span> | math.h у стандарті POSIX<a href="%D0%90%D0%BD%D0%B3%D0%BB%D1%96%D0%B9%D1%81%D1%8C%D0%BA%D0%B0_%D0%BC%D0%BE%D0%B2%D0%B0" title="Англійська мова">англ.</a> <i lang="en">(англ.)</i>]</span>
</li>
</ol></div></div>
<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>
<ul><li><span class=" nourlexpansion"><code><a rel="nofollow" class="external text" href="http://linux.die.net/man/3/math">math(3)</a></code></span>:&nbsp;Mathematical Functions&nbsp;–&nbsp;сторінка довідки <a href="Man" title="Man">man</a> про бібліотечні функції <a href="GNU/Linux" class="mw-redirect" title="GNU/Linux">GNU/Linux</a> <style data-mw-deduplicate="TemplateStyles:r44275645">
/* start https://uk.wikipedia.org/ */


.mw-parser-output .ref-info{font-size:85%;cursor:help;margin-left:0.2em;color:var(--color-subtle,#54595d)}


/* end   https://uk.wikipedia.org/ */
</style><span title="англійською мовою" class="ref-info">(англ.)</span></li></ul>
<p><br>
</p>
</div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2025-02-25" href="https://uk.wikipedia.org/wiki/?title=Math.h&amp;oldid=44704864">Вікіпедія</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>