Learn R Programming

ecd (version 0.6.4)

ecd.mpfr: Wrapper to convert numeric to mpfr

Description

Convert numeric to mpfr for ecd calculations. ecd.mp1 is the constant 1 wrapped in mpfr class. ecd.erf is a wrapper on Rmpfr::erf. ecd.devel is a developer tool to size down intensive mpfr tests for CRAN. Set ecd_devel in R options or OS env to change its value.

Usage

ecd.mpfr(x, precBits = getOption("ecd.precBits"))
ecd.mp1
ecd.erf(x)
ecd.devel()

Arguments

x
a numeric vector or list. If x is mpfr class, it will be passed through.
precBits
an integer for mpfr precBits. Default is from getOption("ecd.precBits").

Value

The mpfr object

Format

An object of class mpfr of length 1.

Examples

Run this code
x <- ecd.mpfr(1)
y <- ecd.mpfr(c(1,2,3))
z <- ecd.mp1

Run the code above in your browser using DataLab