I used LPC1765 in the system, the program is as follows:
#include<math.h>
...
int main(void)
{ ...
float a,b,c;
b = 3.1;
a = log(b);
c = sin(a);
}
the program is compiled and linked with no error, but "a" and "c" can't get the correct value. who could help me? thanks a lot!
"a" and "c" can't get the correct value
And you know that ... how?
Describing what did not happen is almost never a useful way of reporting a problem. You need to describe what happened instead, and why you think that's not what should have happened.
I debug the program in simulation mode, and excecute the program step by step, thus "a" and "c" can be see from the watch windows.