R/myf.R

Defines functions myf

Documented in myf

#' Square function
#'
#' Takes a vector and returns a vector of squared components.
#'
#' @param x
#'
#' @return a vector of squared components in the form of a vector object
#' @export
#'
#' @examples
#' x=1:30; myf(x)
myf=function(x) {
  x^2
}
Xavier00001/math4753e documentation built on Jan. 20, 2020, 12:05 a.m.