<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.hypot.php',
    1 => 'hypot',
    2 => '直角三角形の斜辺の長さを計算する',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Math 関数',
  ),
  'prev' => 
  array (
    0 => 'function.hexdec.php',
    1 => 'hexdec',
  ),
  'next' => 
  array (
    0 => 'function.intdiv.php',
    1 => 'intdiv',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/math/functions/hypot.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.hypot" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hypot</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">hypot</span> &mdash; <span class="dc-title">
   直角三角形の斜辺の長さを計算する
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hypot-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>hypot</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$x</code></span>, <span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$y</code></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>hypot()</strong></span> は、直角をはさむ 2 辺の長さが
   <code class="parameter">x</code> および <code class="parameter">y</code> である
   直角三角形の斜辺の長さ、すなわち原点と
   (<code class="parameter">x</code>, <code class="parameter">y</code>) との距離を返します。
   これは <code class="code">sqrt($x*$x + $y*$y)</code> と等価です。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.hypot-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">x</code></dt>
     <dd>
      <p class="para">
       最初の辺の長さ。
      </p>
     </dd>
    
    
     <dt><code class="parameter">y</code></dt>
     <dd>
      <p class="para">
       二番目の辺の長さ。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.hypot-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   斜辺の長さを返します。
  </p>
 </div>

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