<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-18375</id>
	<title>Nabble - quantlib-users</title>
	<updated>2009-11-09T00:51:50Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/quantlib-users-f18375.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/quantlib-users-f18375.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26262963</id>
	<title>Re: Heston model - Monte Carlo simulation</title>
	<published>2009-11-09T00:51:50Z</published>
	<updated>2009-11-09T00:51:50Z</updated>
	<author>
		<name>gbogaert</name>
	</author>
	<content type="html">Hello Everyone,
&lt;br&gt;&lt;br&gt;The aim of what I described below would be to evaluate an autocallable bond which is described as following:
&lt;br&gt;&lt;br&gt;Issue Size;Notes;Par per Note;Trade Date;Strike Date (Index value);Issue/payment date;Final Valuation Date;Final Redemption Date;Denomination;Issue price per note;Calendar
&lt;br&gt;10000000;10000;1000;24/01/2008;24/01/2008(3809.07);07/02/2008;24/01/2013;07/02/2013;1000;London and TARGET
&lt;br&gt;&lt;br&gt;Index/Underlying=STOXX50E;
&lt;br&gt;Trigger Level=65% closing value at strike date;
&lt;br&gt;Protection Level=100% closing value at strike date;
&lt;br&gt;&lt;br&gt;Auto-Call Dates;IF STOXX50E &amp;gt;= Strike level;	Then change at Early Redemption Date;	to Early Redemption Amount;	Next action
&lt;br&gt;26/01/2009;	100% x Protection Level = 3809.07;09/02/2009;	112% x Denomination;	-&amp;gt; Notes terminated and no further payment shall be made
&lt;br&gt;25/01/2010;	95% x Protection Level;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;08/02/2010;	124% x Denomination;	-&amp;gt; Notes terminated and no further payment shall be made
&lt;br&gt;24/01/2011;	90% x Protection Level;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;07/02/2011;	136% x Denomination;	-&amp;gt; Notes terminated and no further payment shall be made
&lt;br&gt;24/01/2012;	85% x Protection Level;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;07/02/2012;	148% x Denomination;	-&amp;gt; Notes terminated and no further payment shall be made
&lt;br&gt;&lt;br&gt;Auto-Call Dates;IF STOXX50E &amp;gt;= Trigger Level;Then change at &amp;nbsp;Redemption Date;to Redemption Amount
&lt;br&gt;24/01/2013; 65% closing value at strike date; 07/02/2013;	160% x Denomination
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; if NOT; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;07/02/2013;	100% x (STOXX50E final / STOXX50E initial) x (100/65)
&lt;br&gt;&lt;br&gt;Evaluation date: 30/09/2009
&lt;br&gt;Implied volatility:0.25667
&lt;br&gt;Index value at evaluation date: 2872.63
&lt;br&gt;Dividend: 0.033949938
&lt;br&gt;&lt;br&gt;To valuate it I thought of
&lt;br&gt;1) Simulate a brownian motion
&lt;br&gt;2) Evaluate at each auto-call dates le average of St
&lt;br&gt;&lt;br&gt;Someone has an idea?
&lt;br&gt;&lt;br&gt;Thank you in advance,
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Gilles
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Heston-model---Monte-Carlo-simulation-tp26235786p26262963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235786</id>
	<title>Heston model - Monte Carlo simulation</title>
	<published>2009-11-06T09:19:49Z</published>
	<updated>2009-11-06T09:19:49Z</updated>
	<author>
		<name>gbogaert</name>
	</author>
	<content type="html">&lt;html xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=&quot;#606420&quot;&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Hello everyone,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;I would like to evaluate the Heston model using a Monte
Carlo simulation and get the values of the paths back, a kind of array [t, St],
or better to get the average of the paths at certain dates. I went through the sources
but I don&amp;#8217;t see how to use the pricing engine for my purpose.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Does anyone have an idea to help me? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Thank you in advance and Have a nice weekend!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Regards,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Gilles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoBodyText&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;

&lt;pre&gt;The information in this e-mail is confidential and may be legally privileged. It is intended
solely for the addressee. Access to this e-mail by anyone else is unauthorized. If you have 
received this communication in error, please address with the subject heading &quot;Received in 
error,&quot; send back to the sender, then delete the e-mail and destroy any copies of it. If you 
are not the intended recipient, any disclosure, copying, distribution or any action taken or 
omitted to be taken in reliance on it, is prohibited and may be unlawful. Any opinions or 
advice contained in this e-mail are subject to the terms and conditions expressed in the 
governing KPMG client engagement letter. Opinions, conclusions and other information in this 
e-mail and any attachments that do not relate to the official business of the firm are 
neither given nor endorsed by it. KPMG cannot guarantee that e-mail communications are secure 
or error-free, as information could be intercepted, corrupted, amended, lost, destroyed, 
arrive late or incomplete, or contain viruses.
 
KPMG is the Luxembourg member firm of KPMG international. KPMG International is a Swiss 
cooperative that serves as a coordinating entity for a network of independent firms operating 
under the KPMG name. KPMG International provides no services to clients. Each member firm of 
KPMG International is a legally distinct and separate entity and each describes itself as 
such. Information about the structure and jurisdiction of your local KPMG member firm can be 
obtained from your KPMG representative.

This footnote also confirms that this e-mail message has been swept by AntiVirus software for 
the presence of computer viruses. However, the ultimate responsibility for virus checking 
lies with the recipient of this e-mail.
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235786&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Heston-model---Monte-Carlo-simulation-tp26235786p26235786.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26178933</id>
	<title>Re: QuantLib 0.9.9 build problem (boost::none)</title>
	<published>2009-11-03T04:28:20Z</published>
	<updated>2009-11-03T04:28:20Z</updated>
	<author>
		<name>Jose Aparicio-Navarro</name>
	</author>
	<content type="html">I am not sure it relates but this thread is starting to look like a problem I
&lt;br&gt;had so Ill jump in. I am on VC++2005, boost 1.38.0
&lt;br&gt;&lt;br&gt;I locally patch the lib with a few untested tricks. Anyway, this forces me to
&lt;br&gt;remove the \Za flag to be able to use boost::thread. This was a known issue you
&lt;br&gt;find in the boost forums, you trigger the macros not allowing threads if I
&lt;br&gt;remember correctly.
&lt;br&gt;&lt;br&gt;Once that flag removed, the problem is that QL compil fails in:
&lt;br&gt;Real AnalyticHestonEngine::Integration::calculate
&lt;br&gt;in: analytichhestonengine.cpp
&lt;br&gt;&lt;br&gt;I havent investigated fully the reasons, looks like the compiler flags in boost
&lt;br&gt;lib configuration files (at least my locals) are triggering somehow use of
&lt;br&gt;boost::bind instead of boost::lambda::bind. Explicitly fully qualifying the use
&lt;br&gt;of this and other lambdas solves the problem.
&lt;br&gt;&lt;br&gt;Are these the VC++2005 errors you mention?
&lt;br&gt;&lt;br&gt;I send you my local patch in case this is related to your problem. Of course
&lt;br&gt;one should import the boost::lambda::_functs_ individually rather than the
&lt;br&gt;spaghetti I am sending, but it shows the places if you perform a file compare.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Pepe
&lt;br&gt;&lt;br&gt;&lt;br&gt;Quoting Luigi Ballabio &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178933&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;luigi.ballabio@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2009-10-30 at 07:22 -0700, Alexander Lotter wrote:
&lt;br&gt;&amp;gt; &amp;gt; I also tried QuantLib 0.9.9 with 1.40 with default project settings in MS
&lt;br&gt;&amp;gt; VS
&lt;br&gt;&amp;gt; &amp;gt; 2005. It didn't worked and I had to remove /Za - flag, ANSI compatibility
&lt;br&gt;&amp;gt; as
&lt;br&gt;&amp;gt; &amp;gt; said in the QuantLib FAQ for .NET 2003 and could compile the project
&lt;br&gt;&amp;gt; without
&lt;br&gt;&amp;gt; &amp;gt; errors. It is better to turn it off in the project settings by default.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think that was done for VC++2005. &amp;nbsp;Not for 2009, though---with
&lt;br&gt;&amp;gt; compatibility disabled there were errors in some other files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Luigi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The First Rule of Optimization: Don't do it.
&lt;br&gt;&amp;gt; The Second Rule of Optimization (For experts only): Don't do it yet.
&lt;br&gt;&amp;gt; -- Michael Jackson
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; QuantLib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178933&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br /&gt;/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;Copyright (C) 2004, 2005, 2008 Klaus Spanderen
&lt;br&gt;&amp;nbsp;Copyright (C) 2007 StatPro Italia srl
&lt;br&gt;&lt;br&gt;&amp;nbsp;This file is part of QuantLib, a free-software/open-source library
&lt;br&gt;&amp;nbsp;for financial quantitative analysts and developers - &lt;a href=&quot;http://quantlib.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://quantlib.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;QuantLib is free software: you can redistribute it and/or modify it
&lt;br&gt;&amp;nbsp;under the terms of the QuantLib license. &amp;nbsp;You should have received a
&lt;br&gt;&amp;nbsp;copy of the license along with this program; if not, please email
&lt;br&gt;&amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178933&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;quantlib-dev@...&lt;/a&gt;&amp;gt;. The license is also available online at
&lt;br&gt;&amp;nbsp;&amp;lt;&lt;a href=&quot;http://quantlib.org/license.shtml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://quantlib.org/license.shtml&lt;/a&gt;&amp;gt;.
&lt;br&gt;&lt;br&gt;&amp;nbsp;This program is distributed in the hope that it will be useful, but WITHOUT
&lt;br&gt;&amp;nbsp;ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
&lt;br&gt;&amp;nbsp;FOR A PARTICULAR PURPOSE. &amp;nbsp;See the license for more details.
&lt;br&gt;*/
&lt;br&gt;&lt;br&gt;/*! \file hestonmodel.hpp
&lt;br&gt;&amp;nbsp; \brief analytic pricing engine for a heston option
&lt;br&gt;&amp;nbsp; based on fourier transformation
&lt;br&gt;*/
&lt;br&gt;&lt;br&gt;#include &amp;lt;boost/math/special_functions/log1p.hpp&amp;gt;
&lt;br&gt;&lt;br&gt;#include &amp;lt;ql/math/functional.hpp&amp;gt;
&lt;br&gt;#include &amp;lt;ql/math/integrals/simpsonintegral.hpp&amp;gt;
&lt;br&gt;#include &amp;lt;ql/math/integrals/kronrodintegral.hpp&amp;gt;
&lt;br&gt;#include &amp;lt;ql/math/integrals/trapezoidintegral.hpp&amp;gt;
&lt;br&gt;#include &amp;lt;ql/math/integrals/gausslobattointegral.hpp&amp;gt;
&lt;br&gt;&lt;br&gt;#include &amp;lt;ql/instruments/payoffs.hpp&amp;gt;
&lt;br&gt;#include &amp;lt;ql/pricingengines/vanilla/analytichestonengine.hpp&amp;gt;
&lt;br&gt;&lt;br&gt;#if defined(QL_PATCH_MSVC)
&lt;br&gt;#pragma warning(disable: 4180)
&lt;br&gt;#endif
&lt;br&gt;&lt;br&gt;#include &amp;lt;boost/lambda/if.hpp&amp;gt; 
&lt;br&gt;#include &amp;lt;boost/lambda/bind.hpp&amp;gt;
&lt;br&gt;#include &amp;lt;boost/lambda/lambda.hpp&amp;gt;
&lt;br&gt;&lt;br&gt;using namespace boost::lambda;
&lt;br&gt;&lt;br&gt;namespace QuantLib {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // helper class for integration
&lt;br&gt;&amp;nbsp; &amp;nbsp; class AnalyticHestonEngine::Fj_Helper 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : public std::unary_function&amp;lt;Real, Real&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; public:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fj_Helper(const VanillaOption::arguments&amp; arguments,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;HestonModel&amp;gt;&amp; model,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const AnalyticHestonEngine* const engine,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time term, Real ratio, Size j);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fj_Helper(Real kappa, Real theta, Real sigma, Real v0, Real s0, Real rho,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const AnalyticHestonEngine* const engine,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time term,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real strike, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real ratio, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size j);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fj_Helper(Real kappa, Real theta, Real sigma, Real v0, Real s0, Real rho,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time term,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real strike, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real ratio, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size j);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real operator()(Real phi) &amp;nbsp; &amp;nbsp; &amp;nbsp;const;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; private:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Size j_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp; const VanillaOption::arguments&amp; arg_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real kappa_, theta_, sigma_, v0_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const ComplexLogFormula cpxLog_;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // helper variables
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Time term_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real x_, sx_, dd_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real sigma2_, rsigma_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real t0_;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // log branch counter
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mutable int &amp;nbsp;b_; &amp;nbsp; &amp;nbsp; // log branch counter
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mutable Real g_km1_; // imag part of last log value
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const AnalyticHestonEngine* const engine_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Fj_Helper::Fj_Helper(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const VanillaOption::arguments&amp; arguments,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;HestonModel&amp;gt;&amp; model,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const AnalyticHestonEngine* const engine,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time term, Real ratio, Size j)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : j_ (j), //arg_(arguments),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kappa_(model-&amp;gt;kappa()), theta_(model-&amp;gt;theta()),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sigma_(model-&amp;gt;sigma()), v0_(model-&amp;gt;v0()),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_(cpxLog), term_(term),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_(std::log(model-&amp;gt;process()-&amp;gt;s0()-&amp;gt;value())),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sx_(std::log(boost::dynamic_pointer_cast&amp;lt;StrikedTypePayoff&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (arguments.payoff)-&amp;gt;strike())),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dd_(x_-std::log(ratio)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sigma2_(sigma_*sigma_),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rsigma_(model-&amp;gt;rho()*sigma_),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t0_(kappa_ - ((j_== 1)? model-&amp;gt;rho()*sigma_ : 0)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b_(0), g_km1_(0),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; engine_(engine) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Fj_Helper::Fj_Helper(Real kappa, Real theta, Real sigma, Real v0, Real s0, Real rho,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const AnalyticHestonEngine* const engine,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time term,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real strike, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real ratio, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size j)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j_(j),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kappa_(kappa),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; theta_(theta),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sigma_(sigma),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v0_(v0),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_(cpxLog), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; term_(term),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_(std::log(s0)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sx_(std::log(strike)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dd_(x_-std::log(ratio)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sigma2_(sigma_*sigma_),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rsigma_(rho*sigma_),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t0_(kappa - ((j== 1)? rho*sigma : 0)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b_(0), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_km1_(0),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; engine_(engine) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Fj_Helper::Fj_Helper(Real kappa, Real theta, Real sigma, Real v0, Real s0, Real rho,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time term,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real strike, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real ratio, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size j)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j_(j),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kappa_(kappa),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; theta_(theta),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sigma_(sigma),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v0_(v0),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_(cpxLog), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; term_(term),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x_(std::log(s0)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sx_(std::log(strike)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dd_(x_-std::log(ratio)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sigma2_(sigma_*sigma_),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rsigma_(rho*sigma_),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t0_(kappa - ((j== 1)? rho*sigma : 0)),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b_(0), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_km1_(0),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; engine_(0) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Real AnalyticHestonEngine::Fj_Helper::operator()(Real phi) const 
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real rpsig(rsigma_*phi);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; t1 = t0_+std::complex&amp;lt;Real&amp;gt;(0, -rpsig);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; d =
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::sqrt(t1*t1 - sigma2_*phi
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *std::complex&amp;lt;Real&amp;gt;(-phi, (j_== 1)? 1 : -1));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; ex = std::exp(-d*term_);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (cpxLog_ == Gatheral) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (phi != 0.0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; p = (t1-d)/(t1+d);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; g 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = std::log((1.0 - p*std::exp(-d*term_))/(1.0 - p));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::complex&amp;lt;Real&amp;gt; addOnTerm = engine_ &amp;gt; 0 ? engine_-&amp;gt;addOnTerm(phi, term_, j_) :0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::exp(v0_*(t1-d)*(1.0-ex)/(sigma2_*(1.0-ex*p))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ (kappa_*theta_)/sigma2_*((t1-d)*term_-2.0*g)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ std::complex&amp;lt;Real&amp;gt;(0.0, phi*(dd_-sx_))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ addOnTerm
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;).imag()/phi;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // use l'Hospital's rule to get lim_{phi-&amp;gt;0}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (j_ == 1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real kmr = rsigma_-kappa_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (std::fabs(kmr) &amp;gt; 1e-7) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dd_-sx_ 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + (std::exp(kmr*term_)*kappa_*theta_
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-kappa_*theta_*(kmr*term_+1.0) ) / (2*kmr*kmr) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - v0_*(1.0-std::exp(kmr*term_)) / (2.0*kmr);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // \kappa = \rho * \sigma
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dd_-sx_ + 0.25*kappa_*theta_*term_*term_ 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ 0.5*v0_*term_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; p = (t1-d)/(t1+d);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; g 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = std::log((1.0 - p*std::exp(-d*term_))/(1.0 - p));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dd_-sx_
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - (std::exp(-kappa_*term_)*kappa_*theta_
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+kappa_*theta_*(kappa_*term_-1.0))/(2*kappa_*kappa_)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - v0_*(1.0-std::exp(-kappa_*term_))/(2*kappa_);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (cpxLog_ == BranchCorrection) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; p &amp;nbsp;= (t1+d)/(t1 - d);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // next term: g = std::log((1.0 - p*std::exp(d*term_))/(1.0 - p))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::complex&amp;lt;Real&amp;gt; g;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g = std::log((1.0 - p*std::exp(-d*term_))/(1.0 - p));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // the exp of the following expression is needed.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const std::complex&amp;lt;Real&amp;gt; e = std::log(p)+d*term_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // does it fit to the machine precision?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (std::exp(-e.real()) &amp;gt; QL_EPSILON) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g = std::log((1.0 - p*std::exp(d*term_))/(1.0 - p));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // use a &amp;quot;big phi&amp;quot; approximation
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g = d*term_ + std::log(p/(p - 1.0));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (g.imag() &amp;gt; M_PI || g.imag() &amp;lt;= -M_PI) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // get back to principal branch of the complex logarithm
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real im = std::fmod(g.imag(), 2*M_PI);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (im &amp;gt; M_PI)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; im -= 2*M_PI;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (im &amp;lt;= -M_PI)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; im += 2*M_PI;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g = std::complex&amp;lt;Real&amp;gt;(g.real(), im);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // be careful here as we have to use a log branch correction
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // to deal with the discontinuities of the complex logarithm.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // the principal branch is not always the correct one.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // (s. A. Sepp, chapter 4)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // remark: there is still the change that we miss a branch
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // if the order of the integration is not high enough.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real tmp = g.imag() - g_km1_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (tmp &amp;lt;= -M_PI)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++b_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (tmp &amp;gt; M_PI)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --b_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_km1_ = g.imag();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g += std::complex&amp;lt;Real&amp;gt;(0, 2*b_*M_PI);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::complex&amp;lt;Real&amp;gt; addOnTerm = engine_ &amp;gt; 0 ? engine_-&amp;gt;addOnTerm(phi, term_, j_) :0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return std::exp(v0_*(t1+d)*(ex-1.0)/(sigma2_*(ex-p))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + (kappa_*theta_)/sigma2_*((t1+d)*term_-2.0*g)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + std::complex&amp;lt;Real&amp;gt;(0,phi*(dd_-sx_))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + addOnTerm
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ).imag()/phi;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_FAIL(&amp;quot;unknown complex logarithm formula&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0.0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::AnalyticHestonEngine(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;HestonModel&amp;gt;&amp; model,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size integrationOrder)
&lt;br&gt;&amp;nbsp; &amp;nbsp; : GenericModelEngine&amp;lt;HestonModel,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VanillaOption::arguments,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VanillaOption::results&amp;gt;(model),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_ &amp;nbsp; &amp;nbsp; (Gatheral),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; integration_(new Integration(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integration::gaussLaguerre(integrationOrder))) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::AnalyticHestonEngine(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;HestonModel&amp;gt;&amp; model,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real relTolerance, Size maxEvaluations)
&lt;br&gt;&amp;nbsp; &amp;nbsp; : GenericModelEngine&amp;lt;HestonModel,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VanillaOption::arguments,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VanillaOption::results&amp;gt;(model),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_(Gatheral),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; integration_(new Integration(Integration::gaussLobatto(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; relTolerance, Null&amp;lt;Real&amp;gt;(), maxEvaluations))) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::AnalyticHestonEngine(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;HestonModel&amp;gt;&amp; model,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Integration&amp; integration)
&lt;br&gt;&amp;nbsp; &amp;nbsp; : GenericModelEngine&amp;lt;HestonModel,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VanillaOption::arguments,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VanillaOption::results&amp;gt;(model),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_(cpxLog),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; integration_(new Integration(integration)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_REQUIRE( &amp;nbsp; cpxLog_ != BranchCorrection
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|| !integration.isAdaptiveIntegration(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Branch correction does not work in conjunction &amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;with adaptive integration methods&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Size AnalyticHestonEngine::numberOfEvaluations() const {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return evaluations_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; std::complex&amp;lt;Real&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::addOnTerm(Real, Time, Size) const {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return std::complex&amp;lt;Real&amp;gt;(0,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; void AnalyticHestonEngine::doCalculation(Real riskFreeDiscount,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real dividendDiscount,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real spotPrice, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real strikePrice,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real term,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real kappa, Real theta, Real sigma, Real v0, Real rho,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const TypePayoff&amp; type,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const Integration&amp; integration,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const ComplexLogFormula cpxLog,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const AnalyticHestonEngine* const enginePtr,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real&amp; value,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size&amp; evaluations)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real ratio = riskFreeDiscount/dividendDiscount;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real c_inf = std::min(10.0, std::max(0.0001,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::sqrt(1.0-square&amp;lt;Real&amp;gt;()(rho))/sigma))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *(v0 + kappa*theta*term);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evaluations = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real p1 = integration.calculate(c_inf, 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fj_Helper(kappa,theta,sigma,v0,spotPrice,rho, enginePtr, cpxLog, term, strikePrice, ratio, 1)) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Fj_Helper(arguments_, model_, this, cpxLog_, term, ratio, 1))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /M_PI;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evaluations+= integration.numberOfEvaluations();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real p2 = integration.calculate(c_inf, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fj_Helper(kappa,theta,sigma,v0,spotPrice,rho, enginePtr, cpxLog, term, strikePrice, ratio, 2))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Fj_Helper(arguments_, model_, this, cpxLog_, term, ratio, 2))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /M_PI;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evaluations+= integration.numberOfEvaluations(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch (type.optionType()) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case Option::Call:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value = spotPrice*dividendDiscount*(p1+0.5)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- strikePrice*riskFreeDiscount*(p2+0.5);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case Option::Put:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value = spotPrice*dividendDiscount*(p1-0.5)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- strikePrice*riskFreeDiscount*(p2-0.5);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_FAIL(&amp;quot;unknown option type&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; void AnalyticHestonEngine::calculate() const 
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // this is a european option pricer
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_REQUIRE(arguments_.exercise-&amp;gt;type() == Exercise::European,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;not an European option&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // plain vanilla
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::shared_ptr&amp;lt;PlainVanillaPayoff&amp;gt; payoff =
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::dynamic_pointer_cast&amp;lt;PlainVanillaPayoff&amp;gt;(arguments_.payoff);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_REQUIRE(payoff, &amp;quot;non-striked payoff given&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;HestonProcess&amp;gt;&amp; process = model_-&amp;gt;process();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real riskFreeDiscount = process-&amp;gt;riskFreeRate()-&amp;gt;discount(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arguments_.exercise-&amp;gt;lastDate());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real dividendDiscount = process-&amp;gt;dividendYield()-&amp;gt;discount(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arguments_.exercise-&amp;gt;lastDate());
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real spotPrice = process-&amp;gt;s0()-&amp;gt;value();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_REQUIRE(spotPrice &amp;gt; 0.0, &amp;quot;negative or null underlying given&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real strikePrice = payoff-&amp;gt;strike();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const Real term = process-&amp;gt;time(arguments_.exercise-&amp;gt;lastDate());
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doCalculation(riskFreeDiscount,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dividendDiscount,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; spotPrice, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strikePrice,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; term,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model_-&amp;gt;kappa(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model_-&amp;gt;theta(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model_-&amp;gt;sigma(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model_-&amp;gt;v0(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; model_-&amp;gt;rho(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *payoff,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *integration_,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cpxLog_,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; results_.value,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evaluations_);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::Integration(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Algorithm intAlgo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;Integrator&amp;gt;&amp; integrator)
&lt;br&gt;&amp;nbsp; &amp;nbsp; : intAlgo_(intAlgo),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; integrator_(integrator) { }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::Integration(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Algorithm intAlgo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const boost::shared_ptr&amp;lt;GaussianQuadrature&amp;gt;&amp; gaussianQuadrature)
&lt;br&gt;&amp;nbsp; &amp;nbsp; : intAlgo_(intAlgo),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; gaussianQuadrature_(gaussianQuadrature) { }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::gaussLobatto(Real relTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size maxEvaluations) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(GaussLobatto, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;Integrator&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new GaussLobattoIntegral(maxEvaluations, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; absTolerance, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; relTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; false)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::gaussKronrod(Real absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size maxEvaluations) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(GaussKronrod, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;Integrator&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new GaussKronrodAdaptive(absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxEvaluations)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::simpson(Real absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size maxEvaluations) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(Simpson, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;Integrator&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new SimpsonIntegral(absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxEvaluations)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::trapezoid(Real absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size maxEvaluations) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(Trapezoid, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;Integrator&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new TrapezoidIntegral&amp;lt;Default&amp;gt;(absTolerance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxEvaluations)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::gaussLaguerre(Size intOrder) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_REQUIRE(intOrder &amp;lt;= 192, &amp;quot;maximum integraton order (192) exceeded&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(GaussLaguerre, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;GaussianQuadrature&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new GaussLaguerreIntegration(intOrder)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::gaussLegendre(Size intOrder) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(GaussLegendre, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;GaussianQuadrature&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new GaussLegendreIntegration(intOrder)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::gaussChebyshev(Size intOrder) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(GaussChebyshev,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;GaussianQuadrature&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new GaussChebyshevIntegration(intOrder)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration 
&lt;br&gt;&amp;nbsp; &amp;nbsp; AnalyticHestonEngine::Integration::gaussChebyshev2th(Size intOrder) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Integration(GaussChebyshev2th,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boost::shared_ptr&amp;lt;GaussianQuadrature&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new GaussChebyshev2thIntegration(intOrder)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Size AnalyticHestonEngine::Integration::numberOfEvaluations() const {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (integrator_) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return integrator_-&amp;gt;numberOfEvaluations();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (gaussianQuadrature_) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return gaussianQuadrature_-&amp;gt;order();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_FAIL(&amp;quot;neither Integrator nor GaussianQuadrature given&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; bool AnalyticHestonEngine::Integration::isAdaptiveIntegration() const {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return intAlgo_ == GaussLobatto
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; || intAlgo_ == GaussKronrod
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; || intAlgo_ == Simpson
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; || intAlgo_ == Trapezoid;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Real AnalyticHestonEngine::Integration::calculate(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Real c_inf,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const boost::function1&amp;lt;Real, Real&amp;gt;&amp; f) const {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Real retVal;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch(intAlgo_) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case GaussLaguerre:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retVal = gaussianQuadrature_-&amp;gt;operator()(f);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case GaussLegendre: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case GaussChebyshev: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case GaussChebyshev2th:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retVal = gaussianQuadrature_-&amp;gt;operator()(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::function1&amp;lt;Real, Real&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::if_then_else_return ( 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (boost::lambda::_1+1.0)*c_inf &amp;gt; QL_EPSILON, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::bind(f, -boost::lambda::bind(std::ptr_fun&amp;lt;Real,Real&amp;gt;(std::log),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.5 * boost::lambda::_1 + 0.5) / c_inf
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)/((boost::lambda::_1+1.0)*c_inf),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::bind(constant&amp;lt;Real, Real&amp;gt;(0.0), boost::lambda::_1))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case Simpson:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case Trapezoid:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case GaussLobatto:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case GaussKronrod:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retVal = integrator_-&amp;gt;operator()(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::function1&amp;lt;Real, Real&amp;gt;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::if_then_else_return ( 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::_1*c_inf &amp;gt; QL_EPSILON, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::bind(f,-boost::lambda::bind(std::ptr_fun&amp;lt;Real,Real&amp;gt;(std::log), boost::lambda::_1) /c_inf) /(boost::lambda::_1*c_inf), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::lambda::bind(constant&amp;lt;Real, Real&amp;gt;(0.0), boost::lambda::_1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0, 1.0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QL_FAIL(&amp;quot;unknwon integration algorithm&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return retVal;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178933&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QuantLib-0.9.9-build-problem-%28boost%3A%3Anone%29-tp26113356p26178933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26178232</id>
	<title>Re: QuantLib 0.9.9 build problem (boost::none)</title>
	<published>2009-11-03T03:14:29Z</published>
	<updated>2009-11-03T03:14:29Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Fri, 2009-10-30 at 07:22 -0700, Alexander Lotter wrote:
&lt;br&gt;&amp;gt; I also tried QuantLib 0.9.9 with 1.40 with default project settings in MS VS
&lt;br&gt;&amp;gt; 2005. It didn't worked and I had to remove /Za - flag, ANSI compatibility as
&lt;br&gt;&amp;gt; said in the QuantLib FAQ for .NET 2003 and could compile the project without
&lt;br&gt;&amp;gt; errors. It is better to turn it off in the project settings by default.
&lt;br&gt;&lt;br&gt;I think that was done for VC++2005. &amp;nbsp;Not for 2009, though---with
&lt;br&gt;compatibility disabled there were errors in some other files.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;The First Rule of Optimization: Don't do it. 
&lt;br&gt;The Second Rule of Optimization (For experts only): Don't do it yet. 
&lt;br&gt;-- Michael Jackson 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26178232&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QuantLib-0.9.9-build-problem-%28boost%3A%3Anone%29-tp26113356p26178232.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26141937</id>
	<title>Re: ql/experimental/inflation/yoycapfloortermpricesurface.hpp: bug in intersect() ? (raffaele.pellicani@zkb.ch)</title>
	<published>2009-10-31T05:15:04Z</published>
	<updated>2009-10-31T05:15:04Z</updated>
	<author>
		<name>Chris Kenyon-2</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:arial,helvetica,sans-serif;font-size:10pt&quot;&gt;&lt;div&gt;Hi,&lt;br&gt;&lt;br&gt;yes, this was a bug (thanks Raffaele). The fix is now in the 0.99 branch as:&lt;br&gt;&lt;br&gt;if ( floorPrice_(t,fStrikes_.back()) &amp;gt; capPrice_(t,fStrikes_.back()) ) {&lt;br&gt;&lt;br&gt;logic as before.&amp;nbsp; &lt;br&gt;&lt;br&gt;Changing to fStrikes_.back() on both sides of the comparison ensures that the same strike is used (also as suggested), otherwise strange effects are possible.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;Chris&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;!-- cg4.c4.mail.gq1.yahoo.com compressed Fri Oct 30 01:08:02 PDT 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141937&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-ql-experimental-inflation-yoycapfloortermpricesurface.hpp%3A-bug-in-intersect%28%29---%28raffaele.pellicani%40zkb.ch%29-tp26141937p26141937.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26130915</id>
	<title>Re: QuantLib 0.9.9 build problem (boost::none)</title>
	<published>2009-10-30T07:22:41Z</published>
	<updated>2009-10-30T07:22:41Z</updated>
	<author>
		<name>Alexander Lotter</name>
	</author>
	<content type="html">Hello Luigi,
&lt;br&gt;&lt;br&gt;that did a trick and I could compile QuantLib 0.9.9 with 1.33.1
&lt;br&gt;&lt;br&gt;I also tried QuantLib 0.9.9 with 1.40 with default project settings in MS VS 2005. It didn't worked and I had to remove /Za - flag, ANSI compatibility as said in the QuantLib FAQ for .NET 2003 and could compile the project without errors. It is better to turn it off in the project settings by default.
&lt;br&gt;&lt;br&gt;Have a nice weekend.
&lt;br&gt;&lt;br&gt;Take care,
&lt;br&gt;&lt;br&gt;Alexander 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Alexander Lotter wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Dear all,
&lt;br&gt;&lt;br&gt;I've just checked out the actuall QuantLib 0.9.9 from the trunk and couldn't compile it with my old boost 1.33.1. What is the new min boost requirement for the lib? I worked with 0.9.7 before and boost 1.33.1 was enought.
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;Alexander
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QuantLib-0.9.9-build-problem-%28boost%3A%3Anone%29-tp26113356p26130915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26119555</id>
	<title>Re: Bootstrapping US Treasury Curve with fake zero coupon bonds</title>
	<published>2009-10-29T12:47:02Z</published>
	<updated>2009-10-29T12:47:02Z</updated>
	<author>
		<name>pdrubetskoy</name>
	</author>
	<content type="html">Thanks, Luigi.
&lt;br&gt;This particular problem was actually caused by me passing 0 for bond redemptions by mistake, sorry!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Luigi Ballabio wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On Tue, 2009-10-20 at 11:51 -0700, pdrubetskoy wrote:
&lt;br&gt;&amp;gt; I am also having similar issues bootstrapping a treasury curve with
&lt;br&gt;&amp;gt; QuantLib. Has there been any resolution to this thread? 
&lt;br&gt;&lt;br&gt;Not that I know of. &amp;nbsp;However, my guess is that unconstrained Cubic
&lt;br&gt;interpolation oscillates too much and the bootstrapper cannot find a
&lt;br&gt;solution; other interpolations work.
&lt;br&gt;&lt;br&gt;Would you have time to debug the problem?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;I'd never join any club that would have the likes of me as a member. 
&lt;br&gt;-- Groucho Marx 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;QuantLib-users@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bootstrapping-US-Treasury-Curve-with-fake-zero-coupon-bonds-tp20581129p26119555.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26116332</id>
	<title>Re: Bootstrapping US Treasury Curve with fake zero coupon bonds</title>
	<published>2009-10-29T09:22:13Z</published>
	<updated>2009-10-29T09:22:13Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Tue, 2009-10-20 at 11:51 -0700, pdrubetskoy wrote:
&lt;br&gt;&amp;gt; I am also having similar issues bootstrapping a treasury curve with
&lt;br&gt;&amp;gt; QuantLib. Has there been any resolution to this thread? 
&lt;br&gt;&lt;br&gt;Not that I know of. &amp;nbsp;However, my guess is that unconstrained Cubic
&lt;br&gt;interpolation oscillates too much and the bootstrapper cannot find a
&lt;br&gt;solution; other interpolations work.
&lt;br&gt;&lt;br&gt;Would you have time to debug the problem?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;I'd never join any club that would have the likes of me as a member. 
&lt;br&gt;-- Groucho Marx 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26116332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bootstrapping-US-Treasury-Curve-with-fake-zero-coupon-bonds-tp20581129p26116332.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26115858</id>
	<title>Re: QuantLib 0.9.9 build problem (boost::none)</title>
	<published>2009-10-29T08:55:39Z</published>
	<updated>2009-10-29T08:55:39Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Thu, 2009-10-29 at 06:48 -0700, Alexander Lotter wrote:
&lt;br&gt;&amp;gt; I've just checked out the actuall QuantLib 0.9.9 from the trunk and couldn't
&lt;br&gt;&amp;gt; compile it with my old boost 1.33.1. What is the new min boost requirement
&lt;br&gt;&amp;gt; for the lib? I worked with 0.9.7 before and boost 1.33.1 was enought.
&lt;br&gt;&lt;br&gt;It works with 1.35 on one of my boxes. &amp;nbsp;I'm not sure about earlier
&lt;br&gt;versions, but if the problem is boost::none, 1.34 should work from what
&lt;br&gt;I read on the Boost site. &amp;nbsp;If you want to keep 1.33.1, the code should
&lt;br&gt;work (please me know if it does or not) if you replace boost::none with
&lt;br&gt;boost::none_t() everywhere---note the (). &amp;nbsp;You might have to include
&lt;br&gt;some additional Boost header to get the declaration of boost::none_t.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Discontent is the first necessity of progress. 
&lt;br&gt;-- Thomas A. Edison 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26115858&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QuantLib-0.9.9-build-problem-%28boost%3A%3Anone%29-tp26113356p26115858.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26113356</id>
	<title>QuantLib 0.9.9 build problem (boost::none)</title>
	<published>2009-10-29T06:48:33Z</published>
	<updated>2009-10-29T06:48:33Z</updated>
	<author>
		<name>Alexander Lotter</name>
	</author>
	<content type="html">Dear all,
&lt;br&gt;&lt;br&gt;I've just checked out the actuall QuantLib 0.9.9 from the trunk and couldn't compile it with my old boost 1.33.1. What is the new min boost requirement for the lib? I worked with 0.9.7 before and boost 1.33.1 was enought.
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;Alexander</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QuantLib-0.9.9-build-problem-%28boost%3A%3Anone%29-tp26113356p26113356.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26005500</id>
	<title>Re: Additional result as an array</title>
	<published>2009-10-22T00:46:24Z</published>
	<updated>2009-10-22T00:46:24Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Thu, 2009-10-22 at 00:00 -0700, Yomi wrote:
&lt;br&gt;&amp;gt; I doubled check and indeed it can contain arrays.
&lt;br&gt;&amp;gt; But if you use the qlInstrumentResults function, you get the following error
&lt;br&gt;&amp;gt; message:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; qlInstrumentResults - boost::bad_any_cast: failed conversion using
&lt;br&gt;&amp;gt; boost::any_cast
&lt;br&gt;&lt;br&gt;Oh, you meant in Excel. &amp;nbsp;Yes, that's limited to doubles (no templates
&lt;br&gt;there.) &amp;nbsp;You'll need to generalize the function somehow. &amp;nbsp;At a pinch,
&lt;br&gt;you can probably create another one that performs the correct cast.
&lt;br&gt;Nando? Eric?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;fix, n.,v. 
&lt;br&gt;What one does when a problem has been reported too many times 
&lt;br&gt;to be ignored. 
&lt;br&gt;-- the Jargon file 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26005500&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Additional-result-as-an-array-tp25995882p26005500.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26004998</id>
	<title>Re: Additional result as an array</title>
	<published>2009-10-22T00:00:22Z</published>
	<updated>2009-10-22T00:00:22Z</updated>
	<author>
		<name>Yomi</name>
	</author>
	<content type="html">I doubled check and indeed it can contain arrays.
&lt;br&gt;But if you use the qlInstrumentResults function, you get the following error message:
&lt;br&gt;&lt;br&gt;qlInstrumentResults - boost::bad_any_cast: failed conversion using boost::any_cast
&lt;br&gt;&lt;br&gt;I don't know if I do something wrong but I would like to dump my greeks in excel when needed and it was sounding the natural way.
&lt;br&gt;&lt;br&gt;Tx
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Dimathematician wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Luigi Ballabio schrieb:
&lt;br&gt;&amp;gt; On Oct 21, 2009, at 6:31 PM, Yomi wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Here is what I am trying to do:
&lt;br&gt;&amp;gt;&amp;gt; I have a PDE engine that I am happy with but I would like to see the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; delta
&lt;br&gt;&amp;gt;&amp;gt; on the full grid (to see the behavior at the barrier).
&lt;br&gt;&amp;gt;&amp;gt; As of today the additionalResults_ should be a single value due to the
&lt;br&gt;&amp;gt;&amp;gt; boost::any type.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as I know, boost::any can contain any type including arrays. Am &amp;nbsp;
&lt;br&gt;&amp;gt; I wrong?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Luigi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; QuantLib-users mailing list
&lt;br&gt;&amp;gt; QuantLib-users@lists.sourceforge.net
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Yes it can include arrays, or any-thing
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;QuantLib-users@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Additional-result-as-an-array-tp25995882p26004998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26004320</id>
	<title>Re: Additional result as an array</title>
	<published>2009-10-21T22:33:33Z</published>
	<updated>2009-10-21T22:33:33Z</updated>
	<author>
		<name>Dimathematician</name>
	</author>
	<content type="html">Luigi Ballabio schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Oct 21, 2009, at 6:31 PM, Yomi wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Here is what I am trying to do:
&lt;br&gt;&amp;gt;&amp;gt; I have a PDE engine that I am happy with but I would like to see the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; delta
&lt;br&gt;&amp;gt;&amp;gt; on the full grid (to see the behavior at the barrier).
&lt;br&gt;&amp;gt;&amp;gt; As of today the additionalResults_ should be a single value due to the
&lt;br&gt;&amp;gt;&amp;gt; boost::any type.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as I know, boost::any can contain any type including arrays. Am &amp;nbsp;
&lt;br&gt;&amp;gt; I wrong?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Luigi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; QuantLib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26004320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Yes it can include arrays, or any-thing
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26004320&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Additional-result-as-an-array-tp25995882p26004320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25998109</id>
	<title>Re: Additional result as an array</title>
	<published>2009-10-21T11:46:31Z</published>
	<updated>2009-10-21T11:46:31Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">&lt;br&gt;On Oct 21, 2009, at 6:31 PM, Yomi wrote:
&lt;br&gt;&amp;gt; Here is what I am trying to do:
&lt;br&gt;&amp;gt; I have a PDE engine that I am happy with but I would like to see the &amp;nbsp;
&lt;br&gt;&amp;gt; delta
&lt;br&gt;&amp;gt; on the full grid (to see the behavior at the barrier).
&lt;br&gt;&amp;gt; As of today the additionalResults_ should be a single value due to the
&lt;br&gt;&amp;gt; boost::any type.
&lt;br&gt;&lt;br&gt;As far as I know, boost::any can contain any type including arrays. Am &amp;nbsp;
&lt;br&gt;I wrong?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25998109&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Additional-result-as-an-array-tp25995882p25998109.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25995882</id>
	<title>Additional result as an array</title>
	<published>2009-10-21T09:31:46Z</published>
	<updated>2009-10-21T09:31:46Z</updated>
	<author>
		<name>Yomi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Here is what I am trying to do:
&lt;br&gt;I have a PDE engine that I am happy with but I would like to see the delta on the full grid (to see the behavior at the barrier).
&lt;br&gt;As of today the additionalResults_ should be a single value due to the boost::any type.
&lt;br&gt;Is there any otherway to see my result instead of developping a pecial function for this special model?
&lt;br&gt;&lt;br&gt;Cheers</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Additional-result-as-an-array-tp25995882p25995882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25994378</id>
	<title>ql/experimental/inflation/yoycapfloortermpricesurface.hpp: bug in intersect() ?</title>
	<published>2009-10-21T07:41:25Z</published>
	<updated>2009-10-21T07:41:25Z</updated>
	<author>
		<name>raffaele.pellicani</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;Hi,&lt;br&gt;
&lt;br&gt;
ATM swap rates come from put-call parity on inflation cap/floor premiums.&lt;br&gt;
The intersection is made in ql/experimenta/yoycapfloortermpricesurface.hpp/ &lt;tt&gt;&lt;font size=&quot;4&quot;&gt;I&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;nterpolatedYoYCapFloorTermPriceSurface&lt;/font&gt;&lt;/tt&gt;::&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;intersect&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()&lt;/font&gt;&lt;/tt&gt;&lt;br&gt;
The code below refers to this function.&lt;br&gt;
&lt;br&gt;
I think that the line:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;&lt;b&gt;&lt;font size=&quot;4&quot; color=&quot;#9C20EE&quot;&gt;if&lt;/font&gt;&lt;/b&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;&amp;nbsp;( &lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;floorPrice_&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;(t,cStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;back&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()) &amp;gt; &lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;capPrice_&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;(t,cStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;front&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()) ) {&lt;br&gt;
&lt;/font&gt;&lt;/tt&gt;&lt;br&gt;
should be changed in:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;&lt;b&gt;&lt;font size=&quot;4&quot; color=&quot;#9C20EE&quot;&gt;if&lt;/font&gt;&lt;/b&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;&amp;nbsp;( &lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;floorPrice_&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;(t,fStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;back&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()) &amp;gt; &lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;capPrice_&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;(t,cStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;front&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()) ) {&lt;/font&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
That is, if the floor price at  &lt;tt&gt;&lt;font size=&quot;4&quot;&gt;fStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;back&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;(),&lt;/font&gt;&lt;/tt&gt;the last strike available for floors is higher than &lt;tt&gt;&lt;font size=&quot;4&quot;&gt;cStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;front&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()&lt;/font&gt;&lt;/tt&gt;,&lt;br&gt;
 the cap price at the first strike available for caps, the fixed leg in the associated YoY Inflation Swap is paying too much. &lt;br&gt;
Hence, the search must be oriented towards ATM Swap Rate( t ) &amp;lt;   &lt;tt&gt;&lt;font size=&quot;4&quot;&gt;fStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;back&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()&lt;/font&gt;&lt;/tt&gt; and the code following the line above gains sense.&lt;br&gt;
&lt;br&gt;
So far, I've worked with data where  &lt;tt&gt;&lt;font size=&quot;4&quot;&gt;fStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;back&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()&lt;/font&gt;&lt;/tt&gt; =  &lt;tt&gt;&lt;font size=&quot;4&quot;&gt;cStrikes_.&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot; color=&quot;#404040&quot;&gt;front&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;4&quot;&gt;()&lt;/font&gt;&lt;/tt&gt; = 2% (the standard market convention in quoting caps/floors).&lt;br&gt;
The ATM Swap curve I get after the change is compatible with the ZC Inflation Swap market.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Raffaele&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Freundliche Grüsse&lt;br&gt;
Raffaele Pellicani &lt;br&gt;
Zürcher Kantonalbank&lt;br&gt;
Financial Engineering Handel, SIPH&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&lt;font color=&quot;#008C99&quot;&gt;Sie drucken dieses E-Mail nicht aus? Die Umwelt dankt!&lt;/font&gt;&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
___________________________________________________________________&lt;br&gt;
&lt;br&gt;
Disclaimer :&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Diese Mitteilung ist nur fuer die Empfaengerin / den Empfaenger bestimmt.&lt;br&gt;
&lt;br&gt;
Fuer den Fall, dass sie von nichtberechtigten Personen empfangen wird, bitten wir diese hoeflich, die Mitteilung an die ZKB zurueckzusenden und anschliessend die Mitteilung mit allen Anhaengen sowie allfaellige Kopien zu vernichten bzw. zu loeschen. Der Gebrauch der Information ist verboten.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
This message is intended only for the named recipient and may contain confidential or privileged information.&lt;br&gt;
&lt;br&gt;
If you have received it in error, please advise the sender by return e-mail and delete this message and any attachments. Any unauthorised use or dissemination of this information is strictly prohibited.&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25994378&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ql-experimental-inflation-yoycapfloortermpricesurface.hpp%3A-bug-in-intersect%28%29---tp25994378p25994378.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25980474</id>
	<title>Re: Bootstrapping US Treasury Curve with fake zero coupon bonds</title>
	<published>2009-10-20T11:51:30Z</published>
	<updated>2009-10-20T11:51:30Z</updated>
	<author>
		<name>pdrubetskoy</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I am also having similar issues bootstrapping a treasury curve with QuantLib. Has there been any resolution to this thread? 
&lt;br&gt;Any help would be appreciated,
&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Irakli Machabeli-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Luigi,
&lt;br&gt;&lt;br&gt;I get this error if I try to bootstrap curve from c# code
&lt;br&gt;1st iteration: could not bootstrap the 1st instrument, maturity March 19th, 
&lt;br&gt;2009: root not bracketed: f[2.22045e-016,3] -&amp;gt; 
&lt;br&gt;[-9.996249e+001,-4.730857e+001]
&lt;br&gt;&lt;br&gt;....
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bootstrapping-US-Treasury-Curve-with-fake-zero-coupon-bonds-tp20581129p25980474.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25971286</id>
	<title>Re: Unresolved external symbol when building python</title>
	<published>2009-10-20T01:06:02Z</published>
	<updated>2009-10-20T01:06:02Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Mon, 2009-10-19 at 19:01 -0700, tglauner wrote:
&lt;br&gt;&amp;gt; I actually resolved the issue by adding '/EHsc' to the extra compile flags.
&lt;br&gt;&amp;gt; Apologies for the original post.
&lt;br&gt;&lt;br&gt;No apologies required--in fact, it's good to have the problem and
&lt;br&gt;solution archived here.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Present to inform, not to impress; if you inform, you will impress. 
&lt;br&gt;-- Fred Brooks 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25971286&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unresolved-external-symbol-when-building-python-tp25932145p25971286.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25968628</id>
	<title>Re: Unresolved external symbol when building python</title>
	<published>2009-10-19T19:01:03Z</published>
	<updated>2009-10-19T19:01:03Z</updated>
	<author>
		<name>tglauner</name>
	</author>
	<content type="html">I actually resolved the issue by adding '/EHsc' to the extra compile flags. Apologies for the original post.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unresolved-external-symbol-when-building-python-tp25932145p25968628.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25956854</id>
	<title>Re: fatal error C1055: compiler limit : out of keys</title>
	<published>2009-10-19T04:34:47Z</published>
	<updated>2009-10-19T04:34:47Z</updated>
	<author>
		<name>Ferdinando Ametrano-4</name>
	</author>
	<content type="html">On Sun, Oct 18, 2009 at 6:42 PM, Andrea Loddo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25956854&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;anloddo@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I got this error message when trying to compile QuanrLibAddin (full) in
&lt;br&gt;&amp;gt; debug mode with boost 1.34 and VC 7.1.
&lt;br&gt;&amp;gt; Any idea?
&lt;br&gt;&lt;br&gt;a couple...
&lt;br&gt;&lt;br&gt;1) get rid of VC7.1 and get VC9 instead
&lt;br&gt;&lt;br&gt;2) QuantLibXL (and maybe QuantLibAddin) would need to be splitted in 3
&lt;br&gt;(dates, math, and the rest) in order to reduce complexity, ease
&lt;br&gt;modular upgrades, reduce linking times, etc
&lt;br&gt;&lt;br&gt;the first point can be satisfied easily, unless you have some
&lt;br&gt;exogenous constraint to stick with VC7.
&lt;br&gt;the second one is a lot of boring work... volunteers welcomed
&lt;br&gt;&lt;br&gt;ciao -- Nando
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25956854&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fatal-error-C1055%3A-compiler-limit-%3A-out-of-keys-tp25948292p25956854.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25948292</id>
	<title>fatal error C1055: compiler limit : out of keys</title>
	<published>2009-10-18T09:42:38Z</published>
	<updated>2009-10-18T09:42:38Z</updated>
	<author>
		<name>andrea loddo-2</name>
	</author>
	<content type="html">Hi,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I got this error message when trying to compile QuanrLibAddin (full) in debug mode with boost 1.34 and VC 7.1.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Any idea?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks,&lt;/div&gt;&lt;div&gt;Andrea&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25948292&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fatal-error-C1055%3A-compiler-limit-%3A-out-of-keys-tp25948292p25948292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25932145</id>
	<title>Unresolved external symbol when building python</title>
	<published>2009-10-16T13:49:12Z</published>
	<updated>2009-10-16T13:49:12Z</updated>
	<author>
		<name>tglauner</name>
	</author>
	<content type="html">I am trying to use the Python wrapper for Quantlib but have trouble building and installing the python part. I am on XP and use VS 2008 with boost 34.
&lt;br&gt;&lt;br&gt;Could you please guide me on how to fix this.
&lt;br&gt;Tim
&lt;br&gt;&lt;br&gt;Here is the error:
&lt;br&gt;C:\Program Files\QuantLib-SWIG-0.9.7\Python&amp;gt;python setup.py build test
&lt;br&gt;running build
&lt;br&gt;running build_py
&lt;br&gt;not copying QuantLib\__init__.py (output up-to-date)
&lt;br&gt;not copying QuantLib\__init__.py (output up-to-date)
&lt;br&gt;not copying QuantLib\QuantLib.py (output up-to-date)
&lt;br&gt;running build_ext
&lt;br&gt;building 'QuantLib._QuantLib' extension
&lt;br&gt;Calling 'vcvarsall.bat x86' (version=9.0)
&lt;br&gt;skipping QuantLib/quantlib_wrap.cpp (build\temp.win32-2.6\Release\QuantLib/quantlib_wrap.obj up-to-date)
&lt;br&gt;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python26\libs /LIBPATH:C:\Python26\PCbuild &amp;quot;/LIBPATH:c:\Program Files\QuantLib-0.9.7\lib&amp;quot; &amp;quot;/LIBPATH:C:\Program Files\boost\boost_1_34_0&amp;quot; /EXPORT:init_QuantLib build\temp.win32-2.6\Release\QuantLib/quantlib_wrap.obj /OUT:build\lib.win32-2.6\QuantLib\_QuantLib.pyd /IMPLIB:build\temp.win32-2.6\Release\QuantLib\_QuantLib.lib /MANIFESTFILE:build\temp.win32-2.6\Release\QuantLib\_QuantLib.pyd.manifest /subsystem:windows /machine:I386
&lt;br&gt;&amp;nbsp; &amp;nbsp;Creating library build\temp.win32-2.6\Release\QuantLib\_QuantLib.lib and object build\temp.win32-2.6\Release\QuantLib\_QuantLib.exp
&lt;br&gt;quantlib_wrap.obj : error LNK2019: unresolved external symbol &amp;quot;void __cdecl boost::throw_exception(class std::exception const &amp;)&amp;quot; (?throw_exception@boost@@YAXABVexception@std@@@Z) referenced in function &amp;quot;public: double __thiscall boost::function1&amp;lt;double,double,class std::allocator&amp;lt;void&amp;gt; &amp;gt;::operator()(double)const &amp;quot; (??R?$function1@NNV?$allocator@X@std@@@boost@@QBENN@Z)
&lt;br&gt;build\lib.win32-2.6\QuantLib\_QuantLib.pyd : fatal error LNK1120: 1 unresolved externals
&lt;br&gt;error: command '&amp;quot;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe&amp;quot;' failed with exit status 1120
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unresolved-external-symbol-when-building-python-tp25932145p25932145.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25912769</id>
	<title>Need help with qlRateHelperSelection</title>
	<published>2009-10-15T10:29:48Z</published>
	<updated>2009-10-15T10:29:48Z</updated>
	<author>
		<name>baknewer</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25912769&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;quantuser@...&lt;/a&gt;&lt;br&gt;&lt;br&gt;I am very new to quantlib. So far trying to maintain a user application that calling qlratehelperselction to return a set of selected depo, futures and swaps. Somehow, not all of these instruments have returned values, and the result array shifted up with the return value. Will this meaning I am using wrong instrument ID? I am using qlDepositRateHelper/qlFutureRateHelper/qlSwapRateHelper to get following instrument ID. 
&lt;br&gt;&lt;br&gt;AllRateHelpers	Priority	Selected
&lt;br&gt;DepoONO#0002	1	DepoO2W
&lt;br&gt;DepoO1W#0008	1	FUTTZ9
&lt;br&gt;DepoO2W#0005	1	FUTTH0
&lt;br&gt;DepoO1M#0002	1	FUTTM0
&lt;br&gt;Depo2M#0004	1	FUTTU0
&lt;br&gt;DepoO3M#0003	1	FUTTZ0
&lt;br&gt;DepoO6M#0002	1	FUTTH1
&lt;br&gt;FUTTZ9#0009	1	FUTTM1
&lt;br&gt;FUTTH0#0003	1	FUTTU1
&lt;br&gt;FUTTM0#0002	4	SwapP3Y
&lt;br&gt;FUTTU0#0002	4	SwapP4Y
&lt;br&gt;FUTTZ0#0002	4	SwapP5Y
&lt;br&gt;FUTTH1#0000	4	SwapP6Y
&lt;br&gt;FUTTM1#0000	4	SwapP7Y
&lt;br&gt;FUTTU1#0000	4	SwapP8Y
&lt;br&gt;SwapP3Y#0012	4	SwapP9Y
&lt;br&gt;SwapP4Y#0002	4	SwapP10Y
&lt;br&gt;SwapP5Y#0002	3	SwapP15Y
&lt;br&gt;SwapP6Y#0002	3	SwapP20Y
&lt;br&gt;SwapP7Y#0002	3	SwapP25Y
&lt;br&gt;SwapP8Y#0002	3	SwapP30Y
&lt;br&gt;SwapP9Y#0000	3	#N/A
&lt;br&gt;SwapP10Y#0000	3	#N/A
&lt;br&gt;SwapP15Y#0000	3	#N/A
&lt;br&gt;SwapP20Y#0000	3	#N/A
&lt;br&gt;SwapP25Y#0000	3	#N/A
&lt;br&gt;SwapP30Y#0000	3	#N/A
&lt;br&gt;&lt;br&gt;Thanks in advance!
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-with-qlRateHelperSelection-tp25912769p25912769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25869238</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-13T01:41:54Z</published>
	<updated>2009-10-13T01:41:54Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Mon, 2009-10-12 at 14:12 -0700, Tactic wrote:
&lt;br&gt;&amp;gt; I don't have any mention of Service Packs in the list. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What I have is Microsoft Visual Studio .Net 2003 Hotfix if it's of any
&lt;br&gt;&amp;gt; relevance.
&lt;br&gt;&lt;br&gt;I don't know. Maybe you might ask your lab administrator if he can check
&lt;br&gt;whether he can apply any updates?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Present to inform, not to impress; if you inform, you will impress. 
&lt;br&gt;-- Fred Brooks 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25869238&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25869238.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25862882</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-12T14:12:32Z</published>
	<updated>2009-10-12T14:12:32Z</updated>
	<author>
		<name>Tactic</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Luigi Ballabio wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;This might be it--I have 7.1.6030. &amp;nbsp;I also have Service Pack 1 in the
&lt;br&gt;list of installed products (under Help/About MVC++.) &amp;nbsp;Do you?
&lt;br&gt;&lt;br&gt;Luigi
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;&lt;br&gt;I don't have any mention of Service Packs in the list. 
&lt;br&gt;&lt;br&gt;What I have is Microsoft Visual Studio .Net 2003 Hotfix if it's of any relevance.
&lt;br&gt;&lt;br&gt;Product details: This is a hotfix to the Microsoft Visual Studio .NET 2003. When you install a later service pack, this hotfix will uninstall automatically for you. The fix will then be applied by the service pack you are installing.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25862882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25855301</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-12T05:20:16Z</published>
	<updated>2009-10-12T05:20:16Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Fri, 2009-10-09 at 03:40 -0700, Tactic wrote:
&lt;br&gt;&amp;gt; It's a university machine, the software was installed by our IT staff.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Microsoft Development Environment 2003 Version 7.1.3088
&lt;br&gt;&lt;br&gt;This might be it--I have 7.1.6030. &amp;nbsp;I also have Service Pack 1 in the
&lt;br&gt;list of installed products (under Help/About MVC++.) &amp;nbsp;Do you?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Blessed is the man who, having nothing to say, abstains from giving 
&lt;br&gt;wordy evidence of the fact. 
&lt;br&gt;-- George Eliot 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25855301&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25855301.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25855626</id>
	<title>Re: About Rainbow Option</title>
	<published>2009-10-12T05:17:29Z</published>
	<updated>2009-10-12T05:17:29Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Sat, 2009-10-10 at 17:46 -0500, Bohan Liu wrote:
&lt;br&gt;&amp;gt; Dear all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a Rainbow option in Multiassets Option?
&lt;br&gt;&lt;br&gt;No, there isn't.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Flon's Law: 
&lt;br&gt;There is not now, and never will be, a language in 
&lt;br&gt;which it is the least bit difficult to write bad programs. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25855626&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/About-Rainbow-Option-tp25839194p25855626.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25855460</id>
	<title>Re: C# - SWIG</title>
	<published>2009-10-12T05:14:50Z</published>
	<updated>2009-10-12T05:14:50Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Tue, 2009-10-06 at 06:05 -0700, sachurao wrote:
&lt;br&gt;&amp;gt; Hi I'm getting the same error as well and I don't think it is related to the
&lt;br&gt;&amp;gt; Date constructor. &amp;nbsp;The first call in my code is creating a calendar and it
&lt;br&gt;&amp;gt; throws the same exception:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Calendar c = new UnitedStates();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Are we aware of any solution for this? &amp;nbsp;It might be that I'm not set up
&lt;br&gt;&amp;gt; correctly.
&lt;br&gt;&lt;br&gt;Do the distributed examples work? They should when they're launched from
&lt;br&gt;the IDE.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;There are two ways to write error-free programs; only the third one
&lt;br&gt;works. 
&lt;br&gt;-- unknown 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25855460&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C----SWIG-tp8821567p25855460.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25839194</id>
	<title>About Rainbow Option</title>
	<published>2009-10-10T15:46:18Z</published>
	<updated>2009-10-10T15:46:18Z</updated>
	<author>
		<name>Bohan Liu</name>
	</author>
	<content type="html">Dear all,&lt;br&gt;&lt;br&gt;Is there a Rainbow option in Multiassets Option?&lt;br&gt;&lt;br&gt;Best,&lt;br&gt;&lt;br&gt;Bohan&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25839194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/About-Rainbow-Option-tp25839194p25839194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25823261</id>
	<title>[QuantLibLXL 0.9.7] sparse SABR volatility surface/smile section invalid quote</title>
	<published>2009-10-09T08:51:58Z</published>
	<updated>2009-10-09T08:51:58Z</updated>
	<author>
		<name>radupaul</name>
	</author>
	<content type="html">Hi:
&lt;br&gt;&lt;br&gt;Just looking for some advice - I need to construct a swaption volatility surface (ATM vols across option expiration and swap tenors) with sparse data, the swaption surface object qlSabrVolSurface() returns a valid object &amp;nbsp;but when trying to extract sections from it with the corresponding smile sections (qlSmileSectionFromSabrVolSurface) got an error &amp;quot;invalid SimpleQuote&amp;quot; (due to missing quotes at certain expirations and swap tenors).
&lt;br&gt;&lt;br&gt;Not sure if there is a solution beside gluing together individual slices of the surface and extrapolate/interpolate the missing data? Anyone one tried a &amp;quot;sparse&amp;quot; volatility interpolation?
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;Radu
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-QuantLibLXL-0.9.7--sparse-SABR-volatility-surface-smile-section-invalid-quote-tp25823261p25823261.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25818999</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-09T03:40:21Z</published>
	<updated>2009-10-09T03:40:21Z</updated>
	<author>
		<name>Tactic</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Luigi Ballabio wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;&amp;nbsp;Did you check that you installed service packs etc.? Or, may
&lt;br&gt;you get the exact version of your compiler so we can compare them?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;It's a university machine, the software was installed by our IT staff.
&lt;br&gt;&lt;br&gt;Microsoft Development Environment 2003 Version 7.1.3088
&lt;br&gt;Microsoft .NET Framework 1.1 Version 1.1.4322
&lt;br&gt;Microsoft Visual C++ .NET &amp;nbsp; 69462-270-0000007-18211
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25818999.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25817849</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-09T02:02:08Z</published>
	<updated>2009-10-09T02:02:08Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Thu, 2009-10-08 at 03:24 -0700, Tactic wrote:
&lt;br&gt;&amp;gt; Well, I get exactly the same error messages with Boost 1.39 
&lt;br&gt;&lt;br&gt;Hmm. Then I can't reproduce the error---0.9.7 builds with VC 2003 on my
&lt;br&gt;machine. Did you check that you installed service packs etc.? Or, may
&lt;br&gt;you get the exact version of your compiler so we can compare them?
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Just remember what ol' Jack Burton does when the earth quakes, the 
&lt;br&gt;poison arrows fall from the sky, and the pillars of Heaven shake. Yeah, 
&lt;br&gt;Jack Burton just looks that big old storm right in the eye and says, 
&lt;br&gt;&amp;quot;Give me your best shot. I can take it.&amp;quot; 
&lt;br&gt;-- Jack Burton, &amp;quot;Big trouble in Little China&amp;quot; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25817849&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25817849.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25817819</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-09T01:58:53Z</published>
	<updated>2009-10-09T01:58:53Z</updated>
	<author>
		<name>Luigi Ballabio</name>
	</author>
	<content type="html">On Thu, 2009-10-08 at 22:03 +0200, Kim Kuen Tang wrote:
&lt;br&gt;&amp;gt; The others errors message indicate that you didnt set the library path. 
&lt;br&gt;&lt;br&gt;No, the other messages are just because, due to the first error, the
&lt;br&gt;library wasn't built. &amp;nbsp;So of course the linker can't find it.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Olmstead's Law: 
&lt;br&gt;After all is said and done, a hell of a lot more is said 
&lt;br&gt;than done. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25817819&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25817819.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25810793</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-08T13:03:08Z</published>
	<updated>2009-10-08T13:03:08Z</updated>
	<author>
		<name>Kim Kuen Tang</name>
	</author>
	<content type="html">&lt;br&gt;Hi Tactic,
&lt;br&gt;&lt;br&gt;the errors messages dont indicate that this is a problem related to 
&lt;br&gt;quantlib.
&lt;br&gt;&lt;br&gt;The first error is a well known problem caused by visual studio and 
&lt;br&gt;should be fixed by version &amp;gt;= 4.0. Perhaps you should update your visual 
&lt;br&gt;studio.
&lt;br&gt;&lt;br&gt;If you are a student you can download the latest visual studio in 
&lt;br&gt;dreamspark.
&lt;br&gt;&lt;br&gt;The others errors message indicate that you didnt set the library path. 
&lt;br&gt;Can you check your library path?
&lt;br&gt;&lt;br&gt;Btw. You should not install quantlib on your desktop.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Kim
&lt;br&gt;&lt;br&gt;Tactic schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to build QuantLib 0.9.7 in Visual C++ .Net 2003 following the
&lt;br&gt;&amp;gt; guide in &lt;a href=&quot;http://quantlib.org/install/vc9.shtml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://quantlib.org/install/vc9.shtml&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have an C1001 error and several LNK1181 errors, namely: 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; **************************************************************************
&lt;br&gt;&amp;gt; fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line
&lt;br&gt;&amp;gt; 2701) &amp;nbsp;Please choose the Technical Support command on the Visual C++ Help
&lt;br&gt;&amp;gt; menu, or open the Technical Support help file for more information
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CallableBonds fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib' &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CDS fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; FittedBondCurve fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Replication fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Repo fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Swap fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; EquityOption fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; DiscreteHedging fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; BermudanSwaption fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ConvertibleBonds fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; FRA fatal error LNK1181: cannot open input file
&lt;br&gt;&amp;gt; '\.windows_settings\desktop\quantlib\quantlib-0.9.7\lib\QuantLib-vc71-mt-0_9_7.lib'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ******************************************************************************
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any solutions? 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; P.S. Boost 1.40 was successfully tested on the testing examples from both
&lt;br&gt;&amp;gt; Boost and QuantLib websites. &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QuantLib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25810793&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QuantLib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/quantlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/quantlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25810793.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25801545</id>
	<title>Re: Can't build QuantLib 0.9.7 with Boost 1.40</title>
	<published>2009-10-08T03:24:17Z</published>
	<updated>2009-10-08T03:24:17Z</updated>
	<author>
		<name>Tactic</name>
	</author>
	<content type="html">Well, I get exactly the same error messages with Boost 1.39 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Luigi Ballabio wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; I have an C1001 error and several LNK1181 errors, namely: 
&lt;br&gt;&lt;br&gt;Yes, we're having quite a few problems with Boost 1.40.
&lt;br&gt;For the time being, I suggest you stick with 1.39.
&lt;br&gt;&lt;br&gt;Luigi
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-build-QuantLib-0.9.7-with-Boost-1.40-tp25772197p25801545.html" />
</entry>

</feed>
