question 1:
Tell me, does the C ++ library <math.h> and <cmath> differ in any way (except for new functions)?
Question 2:
Sometimes there are problems of calculating over similar values, for example, exp(-(log(x) - a)*(log(x) - a)) , as a result, even a long double stops helping and it is necessary to introduce some scaling factors to improve the accuracy that is not very good.
Maybe the fact is that the functions exp, log are program-written, and not from ALU? How do people solve such problems?
boost::multiprecision::cpp_floatfor example. - acade