JavaScript Math.atan方法示例
<!DOCTYPE html> <html> <body> <h3 style="background-color:Silver">atan() 方法示例</h3> <p id="demo">返回1的反正切值</p> <button onclick="myFunction()">点击</button> <script type="text/javascript"> function myFunction() { document.getElementById("demo").innerHTML = Math.atan(1); } </script> </body> </html>
JavaScript atan()方法
- Atan()Math对象的方法返回一个数字的弧度中的反正切值。
- atan()方法返回-pi/2和pi/2 rossians之间的数值。
语法
Math.atan(x)
日期:2020-04-18 01:09:18 来源:oir作者:oir