Hacker News new | ask | show | jobs
by meltyness 1399 days ago
Fun!

...but there's layer after layer of this not working, haha:

3\cos \left(\frac{1}{x\cdot 0.0001}\right)+1.2^{-x+12}-10

1 comments

Looks to be calculating fine, but the limited sampling resolution we can achieve for the graph means that "high-resolution" functions like this will look… strange. Effectively what you are seeing is one-dimensional aliasing. Unfortunately we're stuck with it until we optimize well enough to achieve full per-pixel graph sampling. We have plans for this, but it's… complicated. It involves transpiling latex to GLSL, which I'm sure will be a super fun task for some motivated student and not at all a massive headache.