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 Sept. 11, 2024, 8:46 p.m.