Created
July 23, 2020 01:02
-
-
Save wwwtyro/450f6c6917e1e17041260b6187f22997 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function primenoise(t: number) { | |
const primes = [2, 3, 5, 7, 11, 13, 17, 19]; | |
let sum = 0; | |
for (const p of primes) { | |
sum += Math.sin(t / p); | |
} | |
return sum / primes.length; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment