https://github.com/cran/pracma
Revision b5e4bf28fcba9f5eaffbeecfb0bc307452d074ee authored by Hans W. Borchers on 01 November 2014, 00:00:00 UTC, committed by Gabor Csardi on 01 November 2014, 00:00:00 UTC
1 parent d57c14d
Tip revision: b5e4bf28fcba9f5eaffbeecfb0bc307452d074ee authored by Hans W. Borchers on 01 November 2014, 00:00:00 UTC
version 1.7.7
version 1.7.7
Tip revision: b5e4bf2
humps.R
##
## h u m p s . R Matlab Test Function
##
humps <- function(x) {
if (missing(x))
x <- seq(0.0, 1.0, by=0.05)
stopifnot(is.numeric(x))
1/((x-0.3)^2 + 0.01) + 1/((x-0.9)^2 + 0.04) - 6
}
sinc <- function(x) {
stopifnot(is.numeric(x))
sin(pi * x) / (pi * x)
}
Computing file changes ...