Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
MathPHP
Functions
Special
signum
MathPHP\Functions\Special::signum PHP Méthode
Special Class Documentation
Afficher le fichier
Open project: markrogoyski/math-php
signum()
public
static
méthode
https://en.wikipedia.org/wiki/Sign_function { -1 if x < 0 sgn(x) = { 0 if x = 0 { 1 if x > 0
public
static
signum
(
float
$x
) :
integer
$x
float
Résultat
integer
public static function signum(float $x) : int { if ($x == 0) { return 0; } return $x < 0 ? -1 : 1; }
Special
beta
complementaryErrorFunction
confluentHypergeometric
erf
erfc
errorFunction
gamma
gammaLanczos
gammaStirling
generalizedHypergeometric
hypergeometric
iBetaCF
incompleteBeta
logistic
lowerIncompleteGamma
regularizedIncompleteBeta
sgn
sigmoid
signum
softmax
upperIncompleteGamma
Γ
γ