Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can also make all integers look like sine waves sin(x)


Better divide x by something or you get a pretty crummy sine.

Or multiply by 19.


Or use the high-school sin. (Take's degrees as input)


Tangentially, this is directly related to the article, as x*sin(x) is the x-component of plotting (x,x) in polar coordinates: with more precision (with x a real), you'd obtain a single spiral, but with integers where 2pi≈6, they appear as six.

Plotting primes p like this is plotting p*e^(ip), but the spirals are an interesting observation. You can straighten them out by adding a pi factor to the polar coordinate (so iside the sin...) but that's less interesting.


y = (-1)**x

-1 is a circle, brah!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: