<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.math.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.sqrt.php',
    1 => 'sqrt',
    2 => 'Quadratwurzel',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Mathematische Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.sinh.php',
    1 => 'sinh',
  ),
  'next' => 
  array (
    0 => 'function.tan.php',
    1 => 'tan',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/math/functions/sqrt.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sqrt" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sqrt</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">sqrt</span> &mdash; <span class="dc-title">Quadratwurzel</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.sqrt-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>sqrt</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$num</code></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

  <p class="para rdfs-comment">
   Berechnet die Quadratwurzel des Parameters <code class="parameter">num</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.sqrt-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">num</code></dt>
     <dd>
      <p class="para">
       Der zu verarbeitende Wert.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sqrt-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Die Quadratwurzel des Parameters <code class="parameter">num</code> oder der
   spezielle Wert <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> für negative Zahlen.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.sqrt-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>sqrt()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Die Anzahl der Nachkommastellen hängt von der 'precision'-Einstellung ab<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">sqrt</span><span style="color: #007700">(</span><span style="color: #0000BB">9</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">; </span><span style="color: #FF8000">// 3<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">sqrt</span><span style="color: #007700">(</span><span style="color: #0000BB">10</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">; </span><span style="color: #FF8000">// 3.16227766 ...<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.sqrt-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.pow.php" class="function" rel="rdfs-seeAlso">pow()</a> - Potenzfunktion</span></li>
    <li><strong><code><a href="math.constants.php#constant.m-sqrtpi">M_SQRTPI</a></code></strong> - <code class="code">sqrt(pi)</code></li>
    <li><strong><code><a href="math.constants.php#constant.m-2-sqrtpi">M_2_SQRTPI</a></code></strong> - <code class="code">2/sqrt(pi)</code></li>
    <li><strong><code><a href="math.constants.php#constant.m-sqrt2">M_SQRT2</a></code></strong> - <code class="code">sqrt(2)</code></li>
    <li><strong><code><a href="math.constants.php#constant.m-sqrt3">M_SQRT3</a></code></strong> - <code class="code">sqrt(3)</code></li>
    <li><strong><code><a href="math.constants.php#constant.m-sqrt1-2">M_SQRT1_2</a></code></strong> - <code class="code">1/sqrt(2)</code></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>