| DPQmpfr-utils | R Documentation |
Utilities for package DPQmpfr
ldexp(f, E)
f |
‘fraction’, as such with absolute value in |
E |
integer-valued exponent(s). |
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.
either a numeric or a "mpfr", depending on the type of
f, vector as (the recyled) combination of f and E.
ldexp from package DPQ and
ldexpMpfr from package Rmpfr.
ldexp(1:10, 2)
ldexp(Rmpfr::Const("pi", 96), -2:2) # = pi * (1/4 1/2 1 2 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.