Re: [QuantLib-svn] SF.net SVN: quantlib: [12748]trunk/QuantLib/ql

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

Re: [QuantLib-svn] SF.net SVN: quantlib: [12748]trunk/QuantLib/ql

DU VIGNAUD DE VILLEFORT FRANCOIS GASAPRD PHI
Hi Luigi,

My mistake, I did not realize at the beginning that floating point errors were raised only at the next FPU call.
François

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Luigi Ballabio
Sent: Thursday, September 20, 2007 3:21 PM
To: [hidden email]
Subject: Re: [Quantlib-dev] [QuantLib-svn] SF.net SVN: quantlib: [12748]trunk/QuantLib/ql

On Thu, 2007-09-20 at 06:17 -0700, [hidden email] wrote:

> Modified: trunk/QuantLib/ql/termstructure.hpp
> ===================================================================
> --- trunk/QuantLib/ql/termstructure.hpp 2007-09-20 13:13:26 UTC (rev 12747)
> +++ trunk/QuantLib/ql/termstructure.hpp 2007-09-20 13:17:58 UTC (rev 12748)
> @@ -164,6 +164,7 @@
>      }
>  
>      inline Time TermStructure::timeFromReference(const Date& d) const {
> +        // FLOATING_POINT_EXCEPTION
>          return dayCounter().yearFraction(referenceDate(),d);
>      }

The error seems to be in the day counter. Why flagging code that merely
calls it?

Luigi



--

I hate quotations.
-- Ralph Waldo Emerson



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib: [12748]trunk/QuantLib/ql

Luigi Ballabio
On Thu, 2007-09-20 at 15:47 +0200, DU VIGNAUD DE VILLEFORT FRANCOIS
GASAPRD PHI wrote:
> My mistake, I did not realize at the beginning that floating point
> errors were raised only at the next FPU call.

Yes, there are quite a few of those in your last commit...

Luigi


--

Flon's Law:
There is not now, and never will be, a language in
which it is the least bit difficult to write bad programs.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev