either a numeric or a "mpfr", depending on the type of
f, vector as (the recyled) combination of f and E.
Arguments
f
‘fraction’, as such with absolute value in \([0.5, 1)\), but can
be any numbers.
E
integer-valued exponent(s).
Details
ldexp() is a simple wrapper, either calling
DPQ::ldexp from DPQ or
ldexpMpfr from the Rmpfr package,
$$ ldexp(f, E) := f \times 2^E,$$
computed accurately and fast on typical platforms with internally binary
arithmetic.
See Also
ldexp from package DPQ and
ldexpMpfr from package Rmpfr.