EvalEx icon indicating copy to clipboard operation
EvalEx copied to clipboard

`SQRT` Javadoc issue.

Open zenfyrdev opened this issue 1 year ago • 0 comments

Hi, I've noticed that the SQRT function's Javadoc says that it uses the default BigDecimal#sqrt implementation, which is not the case, as the results produced by the default and SQRT implementations are different.

https://github.com/ezylang/EvalEx/blob/53a8e990cd043e55e031307a5f291871e266972e/src/main/java/com/ezylang/evalex/functions/basic/SqrtFunction.java#L27

input BigDecimal#sqrt SQRT
152.399025e6 12345 12344.9989874
5 2.2360679774997896964091736687312762354406183596115257242708972454105 2.23606797749978969640917366873127623544061835961152572427089724541052
236769 486.58914907753543122473972072155030396245230523850016876894122736411 486.58914907753543122473972072155030396245230523850016876894122736411182

zenfyrdev avatar Jul 23 '24 20:07 zenfyrdev