# logarithms and exponentials
log(x)
exp(x)
log1p(x)
expm1(x)
# miscellaneous mathematics
abs(x)
mean(x)
sqrt(x)
sign(x)
# rounding of numbers
ceiling(x)
floor(x)
round(x, digits = 0)
# trigonometry
cos(x)
sin(x)
tan(x)
acos(x)
asin(x)
atan(x)
# special mathematical functions
lgamma(x)
digamma(x)
choose(n, k)
lchoose(n, k)
# matrix operations
t(x)
chol(x, ...)
diag(x, nrow, ncol)
diag(x) <- value
solve(a, b, ...)
# reducing operations
sum(..., na.rm = TRUE)
prod(..., na.rm = TRUE)
min(..., na.rm = TRUE)
max(..., na.rm = TRUE)
# miscellaneous operations
sweep(x, MARGIN, STATS, FUN = c('-', '+', '/', '*'))