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 贺卡祝福语情侣搞笑简短