|
From: Luigi B. <lui...@gm...> - 2008-07-18 14:34:44
|
On Wed, 2008-07-16 at 12:08 -0400, Luca Billi wrote: > I think the exception is legitimate: interest rates on zero intervals > are meaningless, whereas discount factors are not: > > exp(-r*t) = 1 for t=0, regardless of r. > > That's why I think that, when t=0, it's ok to avoid calling > ZeroSpreadedTermStructure::zeroYieldImpl(), which operates in the > yield space and is not required when t=0, and return immediatly 1. Ok, I've put the t=0 check in. I'd still like to have zeroYieldImpl() succeed at t=0 (the rate can be defined as the limit for t->0, after all) but that's for another day... Thanks for the heads-up, Luigi -- I have yet to see any problem, however complicated, which, when you looked at it in the right way, did not become still more complicated. -- Poul Anderson |