ekuiper
ekuiper copied to clipboard
Incorrect Calculation of Natural Logarithm (ln) Function
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).