std::power fails ..

Posted by deepak sharma-4 on
URL: http://quantlib.414.s1.nabble.com/std-power-fails-tp8104.html

Hi all,

 

I’m computing zero rates for a benchmark in QuantLib, but yesterday I encountered an error, I did debug the library and found std::power (-124.75591365063, 0.04928131417), returns #NUM ( Not a valid number), verified in ‘Excel’ and ‘Calc’, which leads to failure of further calculation, the arguments in std::power(,) are formula based, it’s runtime value,

 

I want to know, how to handle this kind of errors, it doesn’t throw any exceptions.

 

Thanks & Regards,

Deepak Sharma

 

* 3i Infotech wins the "WorldBlu List of Most Democratic Workplaces 2010" Award

This e-mail message may contain confidential,proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that 3i Infotech or its subsidiaries and associated companies,(collectively "3i Infotech"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of 3i Infotech. Before opening any attachments please check them for viruses and defects.


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users