## What is asin in c programming?

asin in c is a mathematical function which is used to find arc sine of a given number in radians.

This function is defined in math.h header file.

### Prototype

```
#include<math.h>
double asin(double y);
```

### Parameter

asin function takes floating point value as angle in radians.

### Return value

This function returns arc sine of a given number in radians.

## Example program for asin in c

```
#include <stdio.h>
#include <math.h>
#define PI 3.14
int main()
{
double x, res, val1;
x=25.0;
val1=PI/180;
res=asin(x*val1);
printf("The arc sine of %lf is %lf degrees", x, res);
return 0;
}
```

While using gcc use below command to add math header.

`gcc file_name.c -lm`

### Code explanation

The variable val1 is defined in terms of degrees and passed to the asin function along with the input value. The result is printed onto the console.

## Difference between asin and sin in c

asin in c is a mathematical function that is used to find the arc sine of a given number in radians. sin in c is a mathematical function that is used to find the sine of a given number.

Prototypes are as follows

```
double asin(double y);
double sin(double y);
```

asin( ) | sin( ) |

Used to find arc sine of a given number. | Used to find sine of a given number. |

`double asin(double y);` | `double sin(double y);` |

## Difference between asin and sinh in c

asin in c is a mathematical function that is used to find the arc sine of a given number in radians. sinh in c is used to find the hyperbolic sine of a given number.

Prototypes are as follows

```
double asin(double y);
double sinh(double y);
```

asin( ) | sinh( ) |

Used to find arc sine of a given number. | Used to find hyperbolic sine of a given number. |

`double asin(double y);` | `double asin(double y);` |

## People also ask for

### What is asin in c?

asin in c is a mathematical function that is used to find the arc sine of a given number in radians. It is defined in math.h header file.