R/myf.R

Defines functions myf

Documented in myf

#' My quadratic function
#'
#' Creates a quadtratic on a vector
#'
#' This is a test function for working on packages.
#'
#' @param x a vector of double values
#'
#' @return a vector of double values
#' @export
#'
#' @examples
#' x=1:30; myf(x)
myf = function(x){
  obj = 2 * x ^ 2 - 5 * x + 6
  obj
}
yosupj/math4753 documentation built on Jan. 18, 2020, 12:20 a.m.