언어 설정

Menu
Sites
Language
Is there anti-trigonometric function in Tizen?

I need to caculate angle by anti-trigonometric function. But when I try to compile the code arccos(value), it failed.

Does tizen support anti-trigonometric functions?

Responses

3 댓글
Vikram

Hi,

I think you can include <math.h> and using acos(). Function prototype is double acos (double x);

Palitsyna

Hello,

as Vikram said, you should use <math.h> library and acos() function. Here you can find all information about this function and example: http://www.tutorialspoint.com/c_standard_library/c_function_acos.htm

Jean Yang

Thanks! Also, for float, the function prototype is float acosf (float x);