Jump to: navigation, search

Php expm1

From w3cyberlearnings

Contents

PHP function expm1

This function returns exp(X)-1, and this function can provide more accurate result even the value of X is close to zero.

Syntax expm1

X is a number.

expm1(X);

Example 1

<?php

echo expm1(1/2);
echo "<br/>";
echo expm1(1/5);
?>

Output

0.64872127070013
0.22140275816017


Related Links


Navigation
Web
SQL
MISC
References