Function

NumCosmoMathutil_sqrt1px_m1

Declaration [src]

gdouble
ncm_util_sqrt1px_m1 (
  const gdouble x
)

Description [src]

Calculates $\sqrt{1+x}-1$ using the appropriated expression to avoid round-off when $x \approx 0$.

Parameters

x

Type: const gdouble

A real number $>-1$.

Return value

Type: gdouble

$\sqrt{1+x}-1$.