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 寒露祝福语毕业寄语简短