[ROOT] CINT problem

From: Anton Fokin (anton.fokin@smartquant.com)
Date: Sat Feb 03 2001 - 23:40:31 MET


Hi rooters,

I've noticed that

  cout << "Implied volatility = " <<
TFinMath::ImpliedVolatility(S,X,t,r,P,TOption::kCall,TOption::kBinomial) <<
endl;

doesn't work in CINT producing

Error: class,struct,union or type ImpliedVolatility(S,X,t,r,P,TOption not
define
d  FILE:c:\root\macros\FinMath\BlackScholes.C LINE:41
Error: class,struct,union or type kCall,TOption not defined
FILE:c:\root\macros
\FinMath\BlackScholes.C LINE:41
*** Interpreter error recovered ***

Although

  Double_t V =
TFinMath::ImpliedVolatility(S,X,t,r,P,TOption::kCall,TOption::kBinomial);

  cout << "Implied volatility = " << V << endl;


works fine. Any comments?

Regards,
Anton

http://www.smartquant.com



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET