[Rd] bug in acosh (win32) (PR#9403)
tshort at eprisolutions.com
tshort at eprisolutions.com
Thu Nov 30 15:09:47 CET 2006
Full_Name: Tom Short
Version: 2.4.0
OS: Windows XP
Submission from: (NULL) (68.236.159.227)
It looks like there's a bug in acosh with complex number in windows:
> acosh(2)
[1] 1.316958
> acosh(2+0i)
[1] 0+NaNi
This happens for me on Windows XP with the following versions:
R version 2.2.0, 2005-10-06, i386-pc-mingw32
R version 2.4.0 (2006-10-03) i386-pc-mingw32
It works fine with the following:
R version 2.4.0 (2006-10-03) i386-pc-linux-gnu (debian)
R version 2.1.0, 2005-04-18, i386-pc-linux-gnu (debian)
> acosh(2+0i)
[1] 1.316958+0i
I didn't find any problem with asinh or atanh taking complex numbers. In
src/main/complex.c, there are some #ifdef Win32's in z_asin and z_acos, so it
may be related to that.
- Tom
Tom Short
EPRI Solutions, Inc.
More information about the R-devel
mailing list