R/power.R

Defines functions cube square

Documented in cube square

#' Square a number
#'
#' Takes any numerical value and squares it.
#' @param x A numeric value to be squared
#' @return The square of the input 
# #' @export 
square <- function(x){
  return(x^2)
}

#' Cube a number
#' @param x Number to be cubed
#' @return The cube of the input
# #' @export
cube <- function(x){
  return(x^3)
}

Try the FuzzySTs package in your browser

Any scripts or data that you put into this service are public.

FuzzySTs documentation built on Nov. 23, 2020, 5:11 p.m.