JavaScript中的Math.sin()函数
sin()Math对象的功能接受一个角度(以弧度为单位)并返回其正弦值。
语法
它的语法如下
Math.sin(90)
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.sin(90);
document.write("sine value of the given angle: "+result);
</script>
</body>
</html>输出结果
sine value of the given angle: 0.8939966636005579
热门推荐
10 高中升学宴祝福语简短
11 同学道别祝福语简短
12 简短有力的结婚祝福语
13 新年探亲祝福语简短精辟
14 冬季祝福语大全 简短的
15 圣诞简短祝福语给父母
16 朋友节最简短祝福语
17 送菜的祝福语简短霸气
18 古风中考祝福语简短