Arith-methods {Brobdingnag} | R Documentation |
Methods for Function Arith in package Brobdingnag
Description
Methods for Arithmetic functions in package Brobdingnag: +
,
-
, *
, /
, ^
Note
The unary arithmetic functions (viz “+
” and
“-
”) do no coercion.
The binary arithmetic functions coerce numeric
<op> brob
to
brob
; and numeric
<op> glub
,
complex
<op> brob
, and brob
<op> glub
,
to glub
.
Author(s)
Robin K. S. Hankin
Examples
x <- as.brob(1:10)
y <- 1e10
x+y
as.numeric((x+y)-1e10)
x^(1/y)
[Package Brobdingnag version 1.2-9 Index]