PHP expm1() Funksie
Voorbeeld
Return exp() - 1:
<?php
echo(expm1(0) . "<br>");
echo(expm1(1) . "<br>");
echo(expm1(10) . "<br>");
echo(expm1(4.8));
?>
Definisie en gebruik
Die expm1()-funksie gee exp(x) - 1 terug.
Sintaksis
expm1(x);
Parameterwaardes
Parameter | Description |
---|---|
x | Required. Specifies the exponent |
Tegniese besonderhede
Terugkeerwaarde: | 'e' verhoog tot die mag van x minus 1 |
---|---|
Retourtipe: | Vlot |
PHP weergawe: | 4.1+ |
PHP Changelog: | PHP 5.3 - expm1() is nou beskikbaar op alle platforms |
❮ PHP Wiskunde Verwysing