কম্পিউটার

গণিত জাভাস্ক্রিপ্টে hypot() ফাংশন


গণিত বস্তুর hypot() ফাংশন সংখ্যা গ্রহণ করে এবং প্রদত্ত সংখ্যার বর্গক্ষেত্রের সমষ্টির বর্গমূল প্রদান করে।

সিনট্যাক্স

এর সিনট্যাক্স নিম্নরূপ

Math.hypot(12, 58, 66);

উদাহরণ

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Math.hypot(12, 58, 66);
      document.write("hypot value: "+result);
   </script>
</body>
</html>

আউটপুট

hypot value: 88.67919710958147

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

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

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

  4. জাভাস্ক্রিপ্টে Math.hypot() ফাংশনের ব্যবহার কী?