C++ Math asin()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 provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India