Home » C programs » math.h header file functions

asin() function of math.h in C



In this article, we are going to learn about asin() function of math.h header file in C language and then try to use it with the help of an example.
Submitted by Manu Jemini, on April 01, 2018

This function provides the functionality to calculate the arc sin of a value. The value should be less than equal to 1 and greater than equal to -1.

This function takes a single parameter as the value whose arc sin value needs to be calculated and return the value which is the result of the calculation.

Example:

    X = 0.2
    The function will return 0.201358 

This function is a part of math.h library and it must be included in the program.

math.h - asin() function Example in C


#include <stdio.h>
#include <math.h>

int main()
{
	// Define the type of variables
	double a,b;

	// Assigning value for getting asin value
	a = 0.2;

	// Calculating the arc sine of a
	b = asin(a);

	// Displaying the result for the user
	printf("The calculated value is: %lf \n\n", b);
	
	return 0;
}

Output

math.h - asin()  in c language






Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.




Comments and Discussions





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com (2015-2018), Some rights reserved.




close Like other websites, this site uses cookies to deliver relevant ads based on your interest, by using our website, you acknowledge that you have read our privacy policy.