zapsmall | R Documentation |
Zapping small components to zero
## S4 method for signature 'onion'
zapsmall(x,digits=getOption("digits"))
## S4 method for signature 'onionmat'
zapsmall(x,digits=getOption("digits"))
x |
An onion or onionmat |
digits |
integer indicating the precision to be used as in |
Uses base::zapsmall()
to zap small elements to zero.
An onion
Robin K. S. Hankin
zapsmall(as.octonion(0.01^(1:8),single=TRUE))
a <- roct(7)
x <- a^1/a
x
zapsmall(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.