Here is an F2ced version of the program pfq.f
For Confluent HyperGeometric fun F(a,b,z) use:
extern void HyperGeomFun(double a_real,double a_imag,double b_real,double b_imag, double z_real, double z_imag,double* res_real,double* res_imag);
For complex gamma fn use:
extern void cgamma(double arg_real,double arg_imag,double* res_real, double* res_imag,int logFlag);ing
Setting logFlag=0 returns original value while logFlag=1 returns log of value
Fox example code refer [url="
http://www.quantcode.com/modules/mydownloads/singlefile.php?cid=10&lid=142"]Asian Option Price using German Yor's approach[/url]
suggestions are welcome, contact me at
sommy1968ZNOSPAM@gmail.com