[ quantlib-Bugs-3476025 ] Code error in fdmblackscholesmesher.cpp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-3476025 ] Code error in fdmblackscholesmesher.cpp

SourceForge.net
Bugs item #3476025, was opened at 2012-01-19 04:33
Message generated for change (Comment added) made by klausspanderen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3476025&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Simon  (simon_ibbotson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Code error in fdmblackscholesmesher.cpp

Initial Comment:
Line 68 currently reads
"   std::pair<Real,Real>(std::log(cPoint.first),cPoint.second)));"
it should read
"  std::pair<Real,Real>(std::log(cPoint.first),std::log(cPoint.second))));

----------------------------------------------------------------------

>Comment By: Klaus Spanderen (klausspanderen)
Date: 2012-01-21 03:20

Message:
Hi Simon

the first parameter must be given in log(cPoint.first) because the mesher
is in log(S). The second parameter controls the number of grid points x_i
that lie in the neighborhood of log(K). Therefore it is not a bug but a
question of the convention we want to use to specify this density
parameter.

In the the past I've used the currently implemented convention that follows
e.g. the Tavella book. If you want to change it we'll have to change the
value of the density parameter in fdblackscholesvanillaengine.cpp etc from
0.1 to exp(0.1)~1.1. Because the implemented behavior should remain as it
is.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3476025&group_id=12740

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev