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
}
sergiogarcia29/MATH4753PROJ1 documentation built on Nov. 22, 2020, 12:39 a.m.