ekuiper icon indicating copy to clipboard operation
ekuiper copied to clipboard

Incorrect Calculation of Natural Logarithm (ln) Function

Open BlancoMY opened this issue 1 year ago • 0 comments

Environment:

  • eKuiper version: 1.11.4
  • Hardware configuration:
  • OS : Alpine docker image running on Ubuntu 22.04 host
  • Others:

What happened and what you expected to happen: The current implementation of the math function in the eKuiper framework is incorrectly calculating the natural logarithm (ln) as log2 (ln(x)/ln(2)). This has led to incorrect results in scenarios where the ln(x) function is expected.

How to reproduce it (as minimally and precisely as possible):

  • Use the math function to calculate the natural logarithm (ln) of a given input.
  • Compare the result with the expected value for ln(x).

BlancoMY avatar Feb 19 '24 07:02 BlancoMY