PHP asin() 函数

PHP 教程 · 2019-01-26 17:56:30

实例

返回不同数的反正弦:

<?php
echo(asin(0.64) . "<br>");
echo(asin(-0.4) . "<br>");
echo(asin(0) . "<br>");
echo(asin(-1) . "<br>");
echo(asin(1) . "<br>");
echo(asin(2));
?>

定义和用法

asin() 函数返回一个数的反正弦。

提示:asin(1) 返回 Pi/2 的值。

语法

asin(number);

参数 描述
number 必需。规定一个数,范围在 -1 到 1 之间。

技术细节

返回值: number 的反正弦。如果 number 不在 -1 到 1 之间的范围,则返回 NAN。
返回类型: Float
PHP 版本: 4+

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

查看所有标签

Algorithms in C (Computer Science Series)

Algorithms in C (Computer Science Series)

Robert Sedgewick / Addison-Wesley Professional / 1990-01-11 / USD 59.99

This new version of the best-selling book, Algorithms, SecondEdition, provides a comprehensive collection of algorithmsimplemented in C. A variety of algorithms are described in eachofthe following ar......一起来看看 《Algorithms in C (Computer Science Series)》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

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

正则表达式在线测试