powered by
Zapping small components to zero
# S4 method for onion zapsmall(x,digits=getOption("digits")) # S4 method for onionmat zapsmall(x,digits=getOption("digits"))
An onion
An onion or onionmat
integer indicating the precision to be used as in base::zapsmall()
base::zapsmall()
Robin K. S. Hankin
Uses base::zapsmall() to zap small elements to zero.
zapsmall(as.octonion(0.01^(1:8),single=TRUE)) a <- roct(7) x <- a^1/a x zapsmall(x)
Run the code above in your browser using DataLab