hypot

hypot

(PHP 4 >= 4.1.0, PHP 5)

hypot 计算一直角三角形的斜边长度

说明

float hypot ( float $x , float $y )

hypot() 函数将会跟据直角三角形的两直解边长度 xy 计算其斜边的长度。或者是从标点 (x, y) 到原点的距离。该函数的算法等同于 sqrt(x*x + y*y)


  • abs
  • acos
  • acosh
  • asin
  • asinh
  • atan
  • atan2
  • atanh
  • base_convert
  • bindec
  • ceil
  • cos
  • cosh
  • decbin
  • dechex
  • decoct
  • deg2rad
  • exp
  • expm1
  • floor
  • fmod
  • getrandmax
  • hexdec
  • hypot
  • is_finite
  • is_infinite
  • is_nan
  • lcg_value
  • log
  • log10
  • log1p
  • max
  • min
  • mt_getrandmax
  • mt_rand
  • mt_srand
  • octdec
  • pi
  • pow
  • rad2deg
  • rand
  • round
  • sin
  • sinh
  • sqrt
  • srand
  • tan
  • tanh
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道