[Prologue]
This Q&A is meant to explain more clearly the inner working of my approximations search class which I first published here
I was requested for more detailed info about this few times already (for various reasons) so I decided to write Q&A style topic about this which I can easily reference in the future and do not need to explain it over and over again.
[Question]
How to approximate values/parameters in Real domain (double) to achieve fitting of polynomials,parametric functions or solve (difficult) equations (like transcendental) ?
Restrictions
- real domain (
doubleprecision) - C++ language
- configurable precision of approximation
- known interval for search
- fitted value/parameter is not strictly monotonic or not function at all