PHP exp() 函数
PHP 教程
· 2019-01-26 21:29:05
实例
返回 'e' 的不同次方:
<?php
echo(exp(0) . "<br>");
echo(exp(1) . "<br>");
echo(exp(10) . "<br>");
echo(exp(4.8));
?>
echo(exp(0) . "<br>");
echo(exp(1) . "<br>");
echo(exp(10) . "<br>");
echo(exp(4.8));
?>
定义和用法
The exp() 函数返回 e 的 x 次方(ex)。
'e' 是自然对数的底(其数值大约等于 2.718282),x 是指数。
语法
exp(x);
| 参数 | 描述 |
|---|---|
| x | 必需。规定指数。 |
技术细节
| 返回值: | 'e' 的 x 次方。 |
|---|---|
| 返回类型: | Float |
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
A=B
Marko Petkovsek、Herbert S. Wilf、Doron Zeilberger / AK Peters, Ltd. / 1996-01 / USD 49.00
At some point, this book describes methods of solving the problem raised by Donald E. Knuth in the classical book "The Art of Computer Programming, Volume 1: Fundamental Algorithms". The main purpo......一起来看看 《A=B》 这本书的介绍吧!