Hi,
I've written a function lcl_GetGammaContFraction(double fA,double fX)
with a do-while loop, where the loop might not terminate by the
mathematical condition. Therefore I use an additional counter. The
caller of that function is in last of the caller chain for example
ScInterpreter::ScGammaDist() or ScInterpreter::ScChiDist().
Can I use
throw errNoConvergence;
for example in this way?
do
...
while (!bFinished && fCount<10000);
if (fCount>=10000)
{
throw errNoConvergence;
}
return fApprox;
If it works in this way with throw, does ScGammaDist() need a try..catch?
kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]