search for: have_log1p

Displaying 4 results from an estimated 4 matches for "have_log1p".

Did you mean: have_log10
2003 Aug 25
0
(PR#3979) Re: Re: R 1.7.x and inaccurate log1p() on OpenBSD
...;> platform to test it, though. I need the same kind of test in my own software, so I made some experiments and came up with the code below for configure.in. I've tested it so far only on NetBSD 1.6 and Sun Solaris 9; it produced the expected settings #define HAVE_BROKEN_LOG1P 1 #define HAVE_LOG1P 1 on NetBSD and /* #undef HAVE_BROKEN_LOG1P */ #define HAVE_LOG1P 1 on Solaris. Notice that the test code checks arguments over a range of powers of two suitable for IEEE 754 with support for subnormals, but will bail out early if necessary. It should therefore work as intended on VAX OpenVM...
2003 Aug 25
1
Re: R 1.7.x and inaccurate log1p() on OpenBSD 3.2 and NetBSD 1.6 (PR#3979)
...52210118e-31 0.000000000000000e+00 The whole point of log1p(x) is to return accurate results for |x| << 1, and the OpenBSD/FreeBSD folks failed to understand that. The simple solution for a missing log1p() that I adopted in hoc is this internal function: fp_t Log1p(fp_t x) { #if defined(HAVE_LOG1PF) || defined(HAVE_LOG1P) || defined(HAVE_LOG1PL) return (log1p(x)); #else fp_t u; /* Use log(), corrected to first order for truncation loss */ u = FP(1.0) + x; if (u == FP(1.0)) return (x); else return (log(u) * (x / (...
2005 Feb 08
0
Compiling R as a shared library
...define HAVE_EXPM1 1 | #define HAVE_FCNTL 1 | #define HAVE_FINITE 1 | #define HAVE_FSEEKO 1 | #define HAVE_FTELLO 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_GETCWD 1 | #define HAVE_GETGRGID 1 | #define HAVE_GETPWUID 1 | #define HAVE_GETUID 1 | #define HAVE_HYPOT 1 | #define HAVE_ISASCII 1 | #define HAVE_LOG1P 1 | #define HAVE_MATHERR 1 | #define HAVE_MKFIFO 1 | #define HAVE_POPEN 1 | #define HAVE_PUTENV 1 | #define HAVE_RINT 1 | #define HAVE_SETENV 1 | #define HAVE_STRCOLL 1 | #define HAVE_STAT 1 | #define HAVE_STRPTIME 1 | #define HAVE_SYMLINK 1 | #define HAVE_SYSTEM 1 | #define HAVE_TIMES 1 | #define...
2005 Apr 19
0
R 2.0.1 install problem on Solaris 9
...define HAVE_EXPM1 1 | #define HAVE_FCNTL 1 | #define HAVE_FINITE 1 | #define HAVE_FSEEKO 1 | #define HAVE_FTELLO 1 | #define HAVE_FTRUNCATE 1 | #define HAVE_GETCWD 1 | #define HAVE_GETGRGID 1 | #define HAVE_GETPWUID 1 | #define HAVE_GETUID 1 | #define HAVE_HYPOT 1 | #define HAVE_ISASCII 1 | #define HAVE_LOG1P 1 | #define HAVE_MATHERR 1 | #define HAVE_MKFIFO 1 | #define HAVE_POPEN 1 | #define HAVE_PUTENV 1 | #define HAVE_RINT 1 | /* end confdefs.h. */ | /* Define setenv to an innocuous variant, in case <limits.h> declares setenv. | For example, HP-UX 11i <limits.h> declares gettimeofday....