AnsweredAssumed Answered

problem with Trigonometric functions ( cos, sin...)

Question asked by Feras Qammou on Feb 10, 2013
Latest reply on Feb 19, 2013 by Monica Arvizu

Hey, I have HCS08JM32, I just, created a new project using floating point & #include <math.h>...

double x = cos(3.14) or any other value like cos(1), cos(1.5)... I don't get any correct answer!

for example:

double x = 0.5; // I get in the debugger x = 0.5

x = cos(3.14); // the x still equal to 0.5 in the debugger!

but when I do the same on MCF51AC256A, I get the right answers.

 

can you help me please!

thanks.

Outcomes