Arith-methods | R Documentation |
Methods for Arithmetic functions in package Brobdingnag: +
,
-
, *
, /
, ^
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
.
Robin K. S. Hankin
x <- as.brob(1:10)
y <- 1e10
x+y
as.numeric((x+y)-1e10)
x^(1/y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.