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));
?>

定义和用法

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

查看所有标签

Trading and Exchanges

Trading and Exchanges

Larry Harris / Oxford University Press, USA / 2002-10-24 / USD 95.00

This book is about trading, the people who trade securities and contracts, the marketplaces where they trade, and the rules that govern it. Readers will learn about investors, brokers, dealers, arbit......一起来看看 《Trading and Exchanges》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换