Hello, I am writing some code in C++ on visual studio 2017 (Windows 8). I put it through the visual studio debugger and my method variable double muaSKbaseline is showing a value of -nan(ind) in the autos area of the debugger when I go through the code line by line with the debugger. Is this bad and if so how to I fix this? The method/function I went through is shown below. Thank you (Sorry about the code not being inline).
This problem is most likely because IR_wavel is a NaN or outside the domain of std::pow, i.e., less-than 0.
Please read the documentation for std::pow and make sure that its input is correct.
N.B.: you can return any expression with the correct type: