array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.exp.php', 1 => 'exp', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Mathematische Funktionen', ), 'prev' => array ( 0 => 'function.deg2rad.php', 1 => 'deg2rad', ), 'next' => array ( 0 => 'function.expm1.php', 1 => 'expm1', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'de', '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 — Berechnet den Exponenten von e
Berechnet e
hoch num
.
Hinweis:
'
e
' ist die Basis des natürlichen Logarithmus (ca. 2,718282).
num
Der zu verarbeitende Exponent.
'e' hoch num
.
Beispiel #1 exp()-Beispiel
<?php
echo exp(12) . "\n";
echo exp(5.7);
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
1.6275E+005 298.87