R/trigonometry.r

Defines functions cospi sinpi

Documented in cospi sinpi

#' sine sad
#'
#' @param x x
#' @param P freq
#'
#' @export
sinpi <- function(x, P) {
  sin(2 * pi * x * (1/P))
}

#' cosine sad
#'
#' @param x x
#' @param P freq
#'
#' @export
cospi <- function(x, P) {
  cos(2 * pi * x * (1/P))
}
vcerqueira/vest documentation built on Feb. 15, 2021, 6:57 p.m.