Logarithm and exponential function
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-09 2:02 AM
Posted on March 09, 2015 at 10:02
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 answers
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-09 4:16 AM
Posted on March 09, 2015 at 12:16
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-09 1:17 PM
Posted on March 09, 2015 at 21:17
Is there any intrinsic FPU support for trigonometry or transcendental functions?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
