Hi,
yes, this was a bug (thanks Raffaele). The fix is now in the 0.99 branch as:
if ( floorPrice_(t,fStrikes_.back()) > capPrice_(t,fStrikes_.back()) ) {
logic as before.
Changing to fStrikes_.back() on both sides of the comparison ensures that the same strike is used (also as suggested), otherwise strange effects are possible.
Best regards,
Chris
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users