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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

Saved successfully!

Ooh no, something went wrong!