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 新婚祝福语大全简短精炼