C++ Math asin()Last Updated : 17 Mar 2025 The function computes the inverse sine of a number given in radian. asin(x) = sin-1x SyntaxSuppose a number is 'x'. Syntax would be: Note: If the value passed is an integer type, then it is cast to double.Parameterx: The value whose inverse sine is to be calculated Return value
Example 1Let's see a simple example when the value of x is zero. Output: Value of Sine is :0 Inverse of Sine is :0 In this example, asin() function calculates the inverse sine of a number when the value of x is zero. Example 2Let's see a simple example when the value of x is greater than 1. Output: Value of Sine is :1 Inverse of Sine is :nan In this example, asin() function calculates the inverse sine of a number when the value of x is greater than 1. Example 3Let's see a simple example when the value of x is less than -1. Output: Value of Sine is : -0.978004 Inverse of Sine is :nan In this example, asin() function calculates the inverse sine of a number when the value of x is less than -1. Next TopicC++ Math Functions |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India