ম্যাথ অবজেক্টের cos() ফাংশন একটি কোণ গ্রহণ করে (রেডিয়ানে) এবং এর কোসাইন মান প্রদান করে।
সিনট্যাক্স
এর সিনট্যাক্স নিম্নরূপ
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