Learn R Programming

Brobdingnag (version 1.2-9)

Math: Various logarithmic and circular functions for brobs

Description

Various elementary functions for brobs

Arguments

x

Object of class brob (or sometimes glub)

base

In function log(), the base of the logarithm

Author

Robin K. S. Hankin

Details

For brobs: apart from abs(), log(), exp(), sinh() and cosh(), these functions return f(as.numeric(x)) so are numeric; the exceptional functions return brobs.

For glubs: mostly direct transliteration of the appropriate formula; one might note that log(z) is defined as glub(log(Mod(x)),Arg(x)).

Examples

Run this code
exp(as.brob(3000))  #exp(3000) is represented with zero error

Run the code above in your browser using DataLab