Actually stepping through it again with the accuracy set to 0.01 I end up hitting return false;
Is there a way I can use the library to return the "close enough" value, without change the source code - so I can easily update to latest library version in the future?
Thanks again!
Dominic
P.S. I believed the quote source code is from the 3.x version.
if (xMid == xMidOld)
{
// accuracy not sufficient, but cannot be improved further
return false;
}
The problem I have is that the next thing that happens is an exception is thrown.
throw new NonConvergenceException(Resources.RootFindingFailed);
My assumption on the way accuracy works, is that once the result varies by less than the accuracy (0.01 in my case), the result cannot be improved further or in my case is close enough for my purpose.Is there a way I can use the library to return the "close enough" value, without change the source code - so I can easily update to latest library version in the future?
Thanks again!
Dominic
P.S. I believed the quote source code is from the 3.x version.