Searched refs:log1p (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/lib/msun/src/
H A De_atanh.c23 * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
27 * atanh(x) = 0.5*log1p(2x+2x*x/(1-x))
60 t = 0.5*log1p(t+t*x/(one-x));
62 t = 0.5*log1p((x+x)/(one-x));
H A De_acosh.c25 * acosh(x) := log1p(t+sqrt(2.0*t+t*t)); where t=x-1.
62 return log1p(t+sqrt(2.0*t+t*t));
H A Ds_asinh.c24 * := sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2)))
55 w =log1p(fabs(x)+t/(one+__ieee754_sqrt(one+t)));
H A Ds_log1p.c16 /* double log1p(double x)
30 * 2. Approximation of log1p(f).
48 * log1p(f) = f - (hfsq - s*(hfsq+R)).
50 * 3. Finally, log1p(x) = k*ln2 + log1p(f).
57 * log1p(x) is NaN with signal if x < -1 (including -INF) ;
58 * log1p(+INF) is +INF; log1p(-1) is -INF with signal;
59 * log1p(NaN) is that NaN with no signal.
72 * algorithm can be used to compute log1p(
102 log1p(double x) function
[all...]
H A Ds_clog.c78 return (CMPLX(log1p(ay * ay) / 2, v));
121 * When |z| is near 1, we subtract 1 and use log1p() and don't
135 * to log1p().
150 return (CMPLX(log1p(ay2l + t + sh) / 2, v));
H A Dcatrig.c110 * log(A + sqrt(A*A-1)) = log1p((A-1) + sqrt((A-1)*(A+1)))
177 * rx = log1p(Am1 + sqrt(Am1*(A+1)))
191 *rx = log1p(Am1 + sqrt(Am1 * (A + 1)));
202 *rx = log1p((y - 1) + sqrt((y - 1) * (y + 1)));
563 * = log1p(4*x / |z-1|^2) / 4
624 rx = log1p(4 * ax / sum_squares(ax - 1, ay)) / 4;
H A Dmath.h282 double log1p(double);
/freebsd-13-stable/lib/msun/tests/
H A Dlogarithm_test.c90 test(log1p, x, result, exceptmask, excepts); \
176 /* log1p(-0.0) == -0.0 even when rounding upwards */
218 * On ld128 platforms the log1p() implementation provides less accuracy,
237 test_tol(log1p, tests[i].x - 1, tests[i].logex,
257 test_tol(log1p, 0x0.3333333333333p0,
264 test_tol(log1p, -0x0.3333333333333p0,
/freebsd-13-stable/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h126 __DEVICE__ double log1p(double);
127 __DEVICE__ float log1p(float);
243 using ::log1p;
H A D__clang_cuda_cmath.h238 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, log1p)
368 using ::log1p;
H A Dtgmath.h938 // log1p
946 __tg_log1p(double __x) {return log1p(__x);}
952 #undef log1p macro
953 #define log1p(__x) __tg_log1p(__tg_promote1((__x))(__x)) macro
H A D__clang_cuda_math.h172 __DEVICE__ double log1p(double __a) { return __nv_log1p(__a); } function
H A D__clang_hip_math.h684 inline double log1p(double __x) { return __ocml_log1p_f64(__x); } function
1110 __DEF_FUN1(double, log1p)
H A Dopencl-c.h7817 float __ovld __cnfn log1p(float x);
7818 float2 __ovld __cnfn log1p(float2 x);
7819 float3 __ovld __cnfn log1p(float3 x);
7820 float4 __ovld __cnfn log1p(float4 x);
7821 float8 __ovld __cnfn log1p(float8 x);
7822 float16 __ovld __cnfn log1p(float16 x);
7824 double __ovld __cnfn log1p(double x);
7825 double2 __ovld __cnfn log1p(double2 x);
7826 double3 __ovld __cnfn log1p(double3 x);
7827 double4 __ovld __cnfn log1p(double
[all...]
/freebsd-13-stable/contrib/netbsd-tests/lib/libm/
H A Dt_log.c236 * log1p(3)
241 atf_tc_set_md_var(tc, "descr", "Test log1p(NaN) == NaN");
249 ATF_CHECK(isnan(log1p(x)) != 0);
255 atf_tc_set_md_var(tc, "descr", "Test log1p(-Inf) == NaN");
261 const double y = log1p(x);
265 atf_tc_fail("log1p(-Inf) != NaN");
272 atf_tc_set_md_var(tc, "descr", "Test log1p(+Inf) == +Inf");
279 ATF_CHECK(log1p(x) == x);
285 atf_tc_set_md_var(tc, "descr", "Test log1p(-1.0) == -HUGE_VAL");
290 const double x = log1p(
[all...]
/freebsd-13-stable/include/
H A Dtgmath.h187 #define log1p(x) __tg_simple(x, log1p) macro
/freebsd-13-stable/tools/regression/include/tgmath/
H A Dtgmath.c133 TGMACRO_REAL(log1p)
546 PRINT("log1p",
547 PASS_REAL_ARG_REAL_RET(log1p));
/freebsd-13-stable/contrib/llvm-project/libcxx/include/
H A Dmath.h224 floating_point log1p (arithmetic x);
1314 // log1p
1316 inline _LIBCPP_INLINE_VISIBILITY float log1p(float __lcpp_x) _NOEXCEPT {return ::log1pf(__lcpp_x);}
1317 inline _LIBCPP_INLINE_VISIBILITY long double log1p(long double __lcpp_x) _NOEXCEPT {return ::log1pl(__lcpp_x);}
1322 log1p(_A1 __lcpp_x) _NOEXCEPT {return ::log1p((double)__lcpp_x);}
/freebsd-13-stable/lib/msun/
H A DMakefile226 log.3 log1p.3 log.3 log1pf.3 log.3 log1pl.3 \

Completed in 141 milliseconds