C Tutorial/math.h/asin
Версия от 17:21, 25 мая 2010; (обсуждение)
asin
Item Value Header file math.h Declaration float asinf(float arg);double asin(double arg);long double asinl(long double arg); Return returns the arc sine. Parameter The argument must be in the range -1 to 1; otherwise a domain error will occur.
<source lang="cpp">#include <math.h>
#include <stdio.h> int main(void) { double val = -1.0; do { printf("Arc sine of %f is %f.\n", val, asin(val)); val += 0.1; } while(val<=1.0); return 0; }</source>