小白教程
所有教程
关于
Search
172.70.131.221
172.70.131.221
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func math atan2”的源代码
本页内容
上一节:
Func_math_atan
下一节:
Func_math_atanh
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:atan2()}}[[Category:PHP Math 数学函数参考手册|7]] = PHP atan2() 函数 = [[:Category:PHP Math 数学函数参考手册]] 通过 atan2() 函数返回两个变量的反正切: <sample title="" desc="" lang="php" hererun="1"> <?php echo(atan2(0.50,0.50) . "<br>"); echo(atan2(-0.50,-0.50) . "<br>"); echo(atan2(5,5) . "<br>"); echo(atan2(10,20) . "<br>"); echo(atan2(-5,-5) . "<br>"); echo(atan2(-10,10)); ?> </sample> == 定义和用法 == atan2() 函数返回两个变量 x 和 y 的反正切。 == 语法 == <pre> atan2(y,x);</pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | y | 必需。规定被除数。 |- | x | 必需。规定除数。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | y/x 的反正切,单位是弧度,其值介于 -Pi 与 Pi 之间。 |- | 返回类型: | Float |- | PHP 版本: | 4+ |} [[:Category:PHP Math 数学函数参考手册]]
返回至“
Func math atan2
”。
上一节:
Func_math_atan
下一节:
Func_math_atanh