11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsASINSynopsis#include double asin (double f)DescriptionThe asin() function implements the converse of sin(), i.e. it is passed a value in the range -1 to +1,and returns an angle in radians whose sine is equal to that value.Example#include #include voidmain (void){float i, a;}for(i = -1.0; i < 1.0 ; i += 0.1) {a = asin(i)*180.0/3.141592;printf("asin(%f) = %f degrees\n", i, a);}See Alsosin(), cos(), tan(), acos(), atan(), atan2()Return ValueAn angle in radians, in the range - π122

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!