I am using c++. When using elliptical integrals defined in the gsl scientific library, I got the following error that the gsl_sf_ellint_P function only accept arguments of the type. I know Mathematica can deal with complex inputs as well. Anyone help me with this? Thanks in advance!
The error message is as follows:
*evaporation-dS-xrx.cpp:37:52: error: cannot convert ‘std::complex’ to ‘double’ for argument ‘1’ to ‘double gsl_sf_ellint_F(double, double, gsl_mode_t)’ sqrt((0.5-I*0.866025)),GSL_PREC_DOUBLE) - (0.107722-I*0.18658)* *
Aucun commentaire:
Enregistrer un commentaire