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

查看所有标签

Artificial Intelligence

Artificial Intelligence

Stuart Russell、Peter Norvig / Pearson / 2009-12-11 / USD 195.00

The long-anticipated revision of this #1 selling book offers the most comprehensive, state of the art introduction to the theory and practice of artificial intelligence for modern applications. Intell......一起来看看 《Artificial Intelligence》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器