R/exp.R

#' Exponential function (base e)
#'
#' @param x: input vector
#' @return e^x
#' @export

expo <- function(x) {
    if (any(!is.numeric(x))) {
        return ("Please enter numbers")
    }
    pow(exp(1), x, plot_it = FALSE)
}
STAT545-UBC-students/hw07-Mengsuper documentation built on May 3, 2019, 8:02 p.m.