bug related to error message "root not bracketed"

Posted by Jinping Shi on
URL: http://quantlib.414.s1.nabble.com/bug-related-to-error-message-root-not-bracketed-tp153.html

Hi,
 
I came across a bug in Quantlib and not sure where to report.  Sorry for the intrusion.
 
in file ./ql/math/solver1d.hpp, the following bug causes error like
 
"root not bracketed: f[2.22045e-16,3] -> [-1.534964e-04,-5.486424e-02]"
 
 
    185             fxMin_ = f(xMin_);
    186             //if (fxMin_ == 0.0)        // Bugfix JSHI
    187             if (fxMin_ <= accuracy)
    188                 return xMin_;
    189
    190             fxMax_ = f(xMax_);
    191             //if (fxMax_ == 0.0)        // Bugfix JSHI
    192             if (fxMax_ <= accuracy)
    193                 return xMax_;
 
I am using version 0.9.9.
 
 
Thanks and Regards,
Jinping Shi


The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users