divide.p <-
function(p1, p2){
outlen <- length(p1) - length(p2) + 1
p1 <- pad(p1, length(p1)+1)
p2 <- pad(p2, length(p1))
p1.fft <- fft(p1)
p2.fft <- fft(p2)
p3.fft <- p1.fft / p2.fft
return(fft(1/length(p3.fft) * p3.fft, inverse = TRUE)[1:outlen])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.