PHP expm1() Functie
Voorbeeld
Retour exp() - 1:
<?php
echo(expm1(0) . "<br>");
echo(expm1(1) . "<br>");
echo(expm1(10) . "<br>");
echo(expm1(4.8));
?>
Definitie en gebruik
De functie expm1() retourneert exp(x) - 1.
Syntaxis
expm1(x);
Parameterwaarden
Parameter | Description |
---|---|
x | Required. Specifies the exponent |
Technische details
Winstwaarde: | 'e' verheven tot de macht x min 1 |
---|---|
Retourtype: | Vlot |
PHP-versie: | 4.1+ |
PHP-wijzigingslogboek: | PHP 5.3 - expm1() is nu beschikbaar op alle platforms |
❮ PHP-wiskundereferentie