কম্পিউটার

জাভাস্ক্রিপ্টে Math.cos() ফাংশন


ম্যাথ অবজেক্টের 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

  1. জাভাস্ক্রিপ্টে Math.tan() ফাংশন

  2. জাভাস্ক্রিপ্টে Math.sinh() ফাংশন

  3. জাভাস্ক্রিপ্টে Math.sin() ফাংশন

  4. জাভাস্ক্রিপ্টে Math.cosh() ফাংশন