Derivasians / Calculatte

A simple to use numerical Java calculus library.
https://derivasians.github.io/Calculatte
Apache License 2.0
1 stars 0 forks source link

Misleading guarantee of accuracy #5

Open SoupyzInc opened 2 years ago

SoupyzInc commented 2 years ago

Calculatte offers the option to round answers to a certain amount of decimal places, but does not guarantee precision for that amount of decimal places. Much research will be needed to be able to guarantee error within Calculatte, and much time will be needed to conduct said research.

Temporary Solution No longer offer the ability to round to a certain amount of decimal places without guaranteed error. This solution will most likely be taken until the final solution can be implemented as to not stop the true focus of Calculatte. Calculatte was a passion project for calculus and programming--and more so for calculus. Due to this vision, I still wish to continue adding my knowledge of calculus into code and will add my knowledge of computer science when it is ready.

Solution Be able to guarantee error and replace decimal rounding with the ability to change the precision of a calculation. I currently do not know what this solution will look like or what it entails.

/cc @jojongx

SoupyzInc commented 2 years ago

Whilst removing rounding in PR #6, I noticed that unit tests will now have to account for long decimal results. Due to floating point inaccuracies, often Calculatte's calculation would be inaccurate, however, once rounded to 3-5 decimal places, the value would be 100% or near 100% accurate.

Perhaps, a default rounding value that cannot be changed should be decided upon. More testing on the accuracy of Calculatte's values when rounded need to be done.

/cc @jojongx