JavaScript中的Math.cos()函数
cos()Math对象的功能接受一个角度(以弧度为单位)并返回其余弦值。
语法
它的语法如下
Math.cos(90)
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.cos(90);
document.write("cosine value of the given angle: "+result);
</script>
</body>
</html>输出结果
cosine value of the given angle: -0.4480736161291702
热门推荐
10 毕业祝福语简短给同学
11 宝宝祝福语诗意简短 古文
12 高中升学宴祝福语简短
13 日常祝福语简短语客户
14 步入高中祝福语简短励志
15 最美的留言祝福语简短
16 老婆生日祝福语简短孩子
17 爱小姨文案祝福语简短
18 给司机老师祝福语简短