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 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!