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
}
nomaxwell/MATH4753PROJ1 documentation built on Jan. 16, 2020, 12:51 a.m.