Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

QuantCode Forum Index
   QuantFinance
     Issue with operations on double in C#
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
foued2d
Posted on: 2012/5/23 16:00
Just popping in
Joined: 2012/5/23
From:
Posts: 1
Issue with operations on double in C#
Hi all,

After few hours searching on internet, I could not find any help... I hope that someone will be able to help here. :'(

I have created a GARCH code in C# (using VS 2010 express), based on the NewMat code developped in C++.

I have a problem with some "simple" '/' operations, where the results are different between C# and C++ (error is around 1E-10), for the same operations in the LogLikelyhood function... Issue is that these cumulated errors become critical at the end, and the program can not converge in C#.

I launched the C++ code in VS2010 and I have the expected result (the ones provided with the NewMat example), so the issue is coming from C#.

Issue in C# is coming from the GARCH class, function LogLikelyhood, which calculates the Derivative Matrix, for order 1 and 2.

Can someone help, please?

Thanks!
Flat Previous Topic | Next Topic

Subject Poster Date
 » Issue with operations on double in C# foued2d 2012/5/23 16:00

Register To Post
 
Similar Links:
Copyright © 2011 QuantCode Inc. All rights reserved.