PHP expm1() 函数

PHP 教程 · 2019-01-26 21:43:06

实例

返回 exp() - 1:

<?php
echo(expm1(0) . "<br>");
echo(expm1(1) . "<br>");
echo(expm1(10) . "<br>");
echo(expm1(4.8));
?>

定义和用法

expm1() 函数返回 exp(x) - 1。

语法

expm1(x);

参数 描述
x 必需。规定指数。

技术细节

返回值: 'e' 的 x 次方减 1。
返回类型: Float
PHP 版本: 4.1+
PHP 更新日志: PHP 5.3:expm1() 函数在所有平台上可用。

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

The Little Typer

The Little Typer

Daniel P. Friedman、David Thrane Christiansen、Duane Bibby、Robert Harper、Conor Mcbride / MIT Press / 2018-10-16 / GBP 30.00

An introduction to dependent types, demonstrating the most beautiful aspects, one step at a time. A program's type describes its behavior. Dependent types are a first-class part of a language, and are......一起来看看 《The Little Typer》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具