Efficient implementation of natural logarithm (ln) and exponentiation

后端 未结 8 2390
借酒劲吻你
借酒劲吻你 2020-12-15 09:18

I\'m looking for implementation of log() and exp() functions provided in C library . I\'m working with 8 bit microcontro

8条回答
  •  我在风中等你
    2020-12-15 09:52

    Would basic table with interpolation between values approach work? If ranges of values are limited (which is likely for your case - I doubt temperature readings have huge range) and high precisions is not required it may work. Should be easy to test on normal machine.

    Here is one of many topics on table representation of functions: Calculating vs. lookup tables for sine value performance?

提交回复
热议问题