R/myf.R

Defines functions myf

Documented in myf

#' My function of squares and cubes
#'
#'Produce list of squares and cubes
#'
#'This is a part of the introduction
#'to packages
#'
#' @param x a vector
#'
#' @return a list of vectors
#' @export
#'
#' @examples
#' x = 1:4; myf(x).
myf=function(x){
  obj1=x^2
  obj2=x^3
  list(square=obj1, cube=obj2)
}
claytonmcfarland/math4753 documentation built on Feb. 4, 2020, 12:30 a.m.