3 Replies Latest reply on Oct 18, 2012 1:20 PM by kishore.kumar

    how to implement floating point computing such as 'log'?

    dongyang.li

      hello, I am a custermor who use your product CYCKIT-050 development KIT. I want to do some floating point computing on such chip. I could run your demo project like ADC_DAC, LCD, etc...

         

      However when I implement a program used y=log(x), the compiler showed error and fail to compile. I have already include "math.h" in my project:

         

      #include <device.h>
      #include <math.h>

         

      void main()

         

      { float y,x;

         

      y=log(x);

         

      }

         

      It compiled wrong in the PSoC Creator 2.1 enviroment! but when I write y=log(10); the compiling seemed ok. Such problem really confused me, please help me out!!