This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

complex_csc_real bug?


Hi,

I think I've found a minor bug in the complex_csc_real function. For 
arguments -1.0 < a < 0,  GSL 1.3 returns

          GSL_SET_COMPLEX (&z, -M_PI_2, -acosh (-1 / a));

I guess that should be

          GSL_SET_COMPLEX (&z, -M_PI_2, acosh (-1 / a));

i.e. the minus sign on the imaginary part should be removed.
Cheers,
Gé


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]