Skip to content

Instantly share code, notes, and snippets.

View MartinMSPedersen's full-sized avatar
🎯
Focusing

Martin Møller Skarbiniks Pedersen MartinMSPedersen

🎯
Focusing
View GitHub Profile
@MartinMSPedersen
MartinMSPedersen / hat3.R
Last active January 8, 2019 22:30
Hat number 3 in R
x <- function(k, t) {
c( -sin(4*pi*k/1000) + sin(t)*sin(t/3)/5,
-0.5*sin(8*pi*k/1000) + cos(t)/2
)
}
y <- function(k, t) {
c( -cos(2*pi*k/1000) + cos(t)*cos(t/3)/2,
-0.5*cos(4*pi*k/1000) + sin(t)/3