array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.exp.php', 1 => 'exp', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Fonctions Math', ), 'prev' => array ( 0 => 'function.deg2rad.php', 1 => 'deg2rad', ), 'next' => array ( 0 => 'function.expm1.php', 1 => 'expm1', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/math/functions/exp.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
exp — Calcul l'exponentielle de e
Retourne e
, à la puissance num
.
Note:
'
e
' est le logarithme naturel, ou approximativement 2.718282.
num
L'argument à traiter
'e', à la puissance num
.
Exemple #1 Exemple avec exp()
<?php
echo exp(12) . "\n";
echo exp(5.7);
?>
L'exemple ci-dessus va afficher :
1.6275E+005 298.87