Error while calculating fixratebond

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while calculating fixratebond

kkyadav78
Hi,
  Below error i am getting from the QUANTLIB while calculating fixrateBond instrument.
../../ql/math/solver1d.hpp:199: In function `QuantLib::Real QuantLib::Solver1D<Impl>::solve(const F&, QuantLib::Real, QuantLib::Real, QuantLib::Real, QuantLib::Real) const [with F = QuantLib::<unnamed>::YieldFinder, Impl = QuantLib::Brent]':
root not bracketed: f[0,1] -> [-nan,-nan]

could you please help in solving this error?

Regards
Kunal
Reply | Threaded
Open this post in threaded view
|

Re: Error while calculating fixratebond

kkyadav78
I am using Quantlib version 0.9.7.
Reply | Threaded
Open this post in threaded view
|

Re: Error while calculating fixratebond

Luigi Ballabio
In reply to this post by kkyadav78
May you post some code that reproduces the error?

Luigi

On Wed, Nov 25, 2015 at 10:31 AM kkyadav78 <[hidden email]> wrote:
Hi,
  Below error i am getting from the QUANTLIB while calculating fixrateBond
instrument.
../../ql/math/solver1d.hpp:199: In function `QuantLib::Real
QuantLib::Solver1D<Impl>::solve(const F&, QuantLib::Real, QuantLib::Real,
QuantLib::Real, QuantLib::Real) const [with F =
QuantLib::<unnamed>::YieldFinder, Impl = QuantLib::Brent]':
root not bracketed: f[0,1] -> [-nan,-nan]

could you please help in solving this error?

Regards
Kunal



--
View this message in context: http://quantlib.10058.n7.nabble.com/Error-while-calculating-fixratebond-tp17117.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
--

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users