ฟังก์ชัน asinh() ของออบเจ็กต์ Math จะรับตัวเลขและคืนค่า arcsine แบบไฮเปอร์โบลิกในหน่วยเรเดียน เพื่อแปลงค่าที่ได้เป็นองศา ให้คูณด้วย 180 แล้วหารด้วย 3.14159 (ค่า pi)
ไวยากรณ์
รูปแบบการใช้งานคือดังนี้
Math.asinh(0.5)
ตัวอย่าง
<html> <head> <title>ตัวอย่าง JavaScript</title> </head> <body> <script type="text/javascript"> var result = Math.asinh(90); document.write("ค่า arcsine แบบไฮเปอร์โบลิก: "+result); document.write("<br>"); document.write("ค่า arcsine แบบไฮเปอร์โบลิกในองศา: "+result*180/Math.PI); </script> </body> </html>ผลลัพธ์
ค่า arcsine แบบไฮเปอร์โบลิก: 5.192987713658941 ค่า arcsine แบบไฮเปอร์โบลิกในองศา: 297.53627905594817