Home
last modified time | relevance | path

Searched full:log1p (Results 1 – 25 of 52) sorted by relevance

123

/titanic_54/usr/src/man/man3m/
H A Dlog1p.3m12 .TH log1p 3M "12 Jul 2006" "SunOS 5.11" "Mathematical Library Functions"
14 log1p, log1pf, log1pl \- compute natural logarithm
21 \fBdouble\fR \fBlog1p\fR(\fBdouble\fR \fIx\fR);
45 If \fIx\fR is \(mi1, a pole error occurs and \fBlog1p()\fR, \fBlog1pf()\fR, and
61 \fBlog1p()\fR as specified by SVID3 and XPG3.
79 The \fBlog1p()\fR function sets \fBerrno\fR to \fBEDOM\fR if the value of
108 An application can also set \fBerrno\fR to 0 before calling \fBlog1p()\fR. On
H A Dexpm1.3m79 The \fBexpm1()\fR and \fBlog1p\fR(3M) functions are useful for financial
84 \fBexpm1(\fIn\fR * log1p(\fIx\fR))\|/\|\fR\fIx\fR
124 \fBilogb\fR(3M), \fBlog1p\fR(3M), \fBmath.h\fR(3HEAD), \fBattributes\fR(5),
/titanic_54/usr/src/lib/libm/common/C/
H A Dlog1p.c29 #pragma weak __log1p = log1p
45 * 2. Approximation of log1p(f).
63 * log1p(f) = f - (hfsq - s*(hfsq+R)).
65 * 3. Finally, log1p(x) = k*ln2 + log1p(f).
72 * log1p(x) is NaN with signal if x < -1 (including -INF) ;
73 * log1p(+INF) is +INF; log1p(-1) is -INF with signal;
74 * log1p(NaN) is that NaN with no signal.
87 * algorithm can be used to compute log1p(x) to within a few ULP:
125 log1p(double x) { in log1p() function
H A Datanh.c39 * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
43 * atanh(x) = ------- * log1p(2*-------).
69 return (copysign(0.5, x) * log1p(t + t)); in atanh()
H A D_SVID_error.c91 * 43-- log1p(-1)
92 * 44-- log1p(x<-1)
864 /* log1p(-1) */ in _SVID_libm_err()
866 exc.name = "log1p"; in _SVID_libm_err()
876 (void) write(2, "log1p: SING error\n", 18); in _SVID_libm_err()
884 /* log1p(x<-1) */ in _SVID_libm_err()
886 exc.name = "log1p"; in _SVID_libm_err()
893 (void) write(2, "log1p: DOMAIN error\n", 20); in _SVID_libm_err()
H A Dacosh.c41 * acosh(x) := log1p(t+sqrt(2.0*t+t*t)); where t = x-1.
93 return (log1p(t + sqrt(2.0 * t + t * t))); in acosh()
H A Dasinh.c42 * := sign(x)*log1p(|x|+x^2/(1+sqrt(1+x^2)))
85 w = log1p(fabs(x) + t / (one + sqrt(one + t))); in asinh()
/titanic_54/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dlog1p.c39 static char sccsid[] = "@(#)log1p.c 8.1 (Berkeley) 6/4/93";
42 /* LOG1P(x)
85 * log1p(x) is NaN with signal if x < -1; log1p(NaN) is NaN with no signal;
86 * log1p(INF) is +INF; log1p(-1) is -INF with signal;
87 * only log1p(0)=0 is exact for finite argument.
90 * log1p(x) returns the exact log(1+x) nearly rounded. In a test run
118 extern double log1p(x)
H A Dacosh.c52 * log1p(x) ...return log(1+x)
58 * acosh(x) := log1p(x)+ln2, if (x > 1.0E20); else
59 * acosh(x) := log1p( sqrt(x-1) * (sqrt(x-1) + sqrt(x+1)) ) .
101 /* return log1p(x) + log(2) if x is large */
102 if(x>big) {t=log1p(x)+ln2lo; return(t+ln2hi);}
105 return(log1p(t*(t+sqrt(x+1.0))));
H A Dasinh.c53 * log1p(x) ...return log(1+x)
60 * := sign(x)*(log1p(x)+ln2)) if sqrt(1+x*x)=x, else
61 * := sign(x)*log1p(|x| + |x|/(1/|x| + sqrt(1+(1/|x|)^2)) )
100 s=one/t; return(copysign(log1p(t+t/(s+sqrt(one+s*s))),x)); }
102 {s=log1p(t)+ln2lo; return(copysign(s+ln2hi,x));}
H A Datanh.c49 * log1p(x) ...return log(1+x)
54 * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
86 return( z*log1p(x+x) );
/titanic_54/usr/src/lib/libm/common/LD/
H A Datanhl.c39 * ATANH(x) = --- * LOG(1 + -------) = 0.5 * LOG1P(2 * --------)
43 * ATANH(x) = ------- * LOG1P(2*-------).
54 #define LOG1P log1pl macro
58 extern GENERIC FABS(),LOG1P(),COPYSIGN();
72 return COPYSIGN(half,x)*LOG1P(t+t);
/titanic_54/usr/src/lib/libm/common/complex/
H A Dcatan.c78 #include "libm.h" /* atan/atan2/fabs/log/log1p */
149 D_IM(ans) = half * log1p(two / (-t)); in catan()
152 D_IM(ans) = half * log1p((ay + ay) / t); in catan()
214 * 4 [ x*x ] 4 x*x [ log1p((2/x)*(2/x)) in catan()
222 D_IM(ans) = 0.25 * log1p(t * t); in catan()
257 D_IM(ans) = half * log1p(two / (ay - one)); in catan()
259 D_IM(ans) = half * log1p((ay + ay) / (one - ay)); in catan()
285 D_IM(ans) = 0.25 * log1p((4.0 * ay) / (ax * ax + t * t)); in catan()
H A Dclog.c63 #include <math.h> /* atan2/fabs/log/log1p */
112 D_RE(ans) = half * log1p(ay * ay); in __clog()
116 D_RE(ans) = half * (log1p(ay * ay + (ax - in __clog()
130 D_RE(ans) = log(ax) + half * log1p(t * t); in __clog()
H A Dcasin.c190 * = 0.5*log1p(2y(y+A));
196 #include "libm.h" /* asin/atan/fabs/log/log1p/sqrt */
303 D_IM(ans) = log1p(xm1 + sqrt(xm1 * (x + one))); in casin()
318 D_IM(ans) = log1p((x - one) + sqrt((x - one) * in casin()
332 D_IM(ans) = ln2 + log(y) + half * log1p(t * t); in casin()
340 D_IM(ans) = half * log1p((y + y) * (y + A)); in casin()
362 /* use log1p and an accurate approx to A-1 */ in casin()
367 D_IM(ans) = log1p(Am1 + sqrt(Am1 * (A + one))); in casin()
H A Dcacos.c189 * = 0.5*log1p(2y(y+A));
331 D_IM(ans) = log1p(xm1 + sqrt(xm1 * (x + one))); in cacos()
347 D_IM(ans) = log1p((x - one) + t); in cacos()
360 D_IM(ans) = ln2 + log(y) + half * log1p(t * t); in cacos()
368 D_IM(ans) = half * log1p((y + y) * (y + A)); in cacos()
389 /* use log1p and an accurate approx to A-1 */ in cacos()
394 D_IM(ans) = log1p(Am1 + sqrt(Am1 * (A + one))); in cacos()
H A Dclogf.c69 F_RE(ans) = (float)(0.5 * log1p(dy * dy)); in clogf()
71 F_RE(ans) = (float)(0.5 * log1p(dx * dx)); in clogf()
H A Dcpowf.c152 dt = dhalf * log1p((dx - 1.0) * (dx + 1.0) + dy * dy); in cpowf()
154 dt = dhalf * log1p((dy - 1.0) * (dy + 1.0) + dx * dx); in cpowf()
/titanic_54/usr/src/head/
H A Dmath.h213 extern double log1p __P((double));
219 #pragma does_not_read_global_data(expm1, ilogb, log1p, rint)
222 #pragma does_not_write_global_data(expm1, ilogb, log1p, rint)
225 #pragma no_side_effect(expm1, ilogb, log1p, rint)
H A Dtgmath.h122 #undef log1p
123 #define log1p(x) __tgmath_log1p(x) macro
/titanic_54/usr/src/contrib/ast/src/lib/libast/features/
H A Duwin2 lib gamma,getpass,lgamma,log,log1p,random,rcmd,rint,srand48
/titanic_54/usr/src/head/iso/
H A Dmath_c99.h223 extern double log1p __P((double));
479 #pragma does_not_read_global_data(acosh, atanh, hypot, lgamma, log1p, logb)
481 #pragma does_not_write_global_data(acosh, atanh, hypot, log1p, logb)
485 #pragma no_side_effect(ilogb, log1p, log2, logb)
/titanic_54/usr/src/lib/libm/common/R/
H A Dlog1pf.c51 return ((float)log1p((double)x)); in log1pf()
/titanic_54/usr/src/contrib/ast/src/cmd/ksh93/data/
H A Dmath.tab53 f 1 log1p
/titanic_54/usr/src/cmd/ast/libast/i386/FEATURE/
H A Duwin20 #define _lib_log1p 1 /* log1p() in default lib(s) */

123