I have a function below in C++ that is generating "nan"s. This is for working with very small numbers and the program has to run using long-doubles. I have tried to ge