2015-03-09 02:02 AM
Hello, I am using STM32F3 Discovery kit. I need to calculate logarithms and exponential function (e^x). I cant find these functions anywhere. Are they in any libraries from ST?
Thank you for answers2015-03-09 04:16 AM
Are they in any libraries from ST?
No. There is nothing ST - specific in, just core and FPU functionality. Your toolchain should provide a math library libm.a, implementing most of the ANSI/POSIX math functionality. Just include math.h, and link against libm.a ('-lm'). Hint: you might want to avoid the (standard) double functions, and use the float versions (like logf() and expf()) instead.
2015-03-09 01:17 PM
Is there any intrinsic FPU support for trigonometry or transcendental functions?