PHP acos() 函数
PHP 教程
· 2019-01-26 17:28:48
实例
返回不同数的反余弦:
<?php
echo(acos(0.64) . "<br>");
echo(acos(-0.4) . "<br>");
echo(acos(0) . "<br>");
echo(acos(-1) . "<br>");
echo(acos(1) . "<br>");
echo(acos(2));
?>
echo(acos(0.64) . "<br>");
echo(acos(-0.4) . "<br>");
echo(acos(0) . "<br>");
echo(acos(-1) . "<br>");
echo(acos(1) . "<br>");
echo(acos(2));
?>
定义和用法
acos() 函数返回一个数的反余弦。
提示:acos(-1) 返回 Pi 的值。
语法
acos(number);
| 参数 | 描述 |
|---|---|
| number | 必需。规定一个数,范围在 -1 到 1 之间。 |
技术细节
| 返回值: | number 的反余弦。如果 number 不在 -1 到 1 之间的范围,则返回 NAN。 |
|---|---|
| 返回类型: | Float |
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Learning jQuery
Jonathan Chaffer、Karl Swedberg / Packt Publishing / 2007-7-7 / GBP 24.99
jQuery is a powerful JavaScript library that can enhance your websites regardless of your background. In this book, creators of the popular jQuery learning resource, learningquery.com, share the......一起来看看 《Learning jQuery》 这本书的介绍吧!