Plotting solutions of implicit functions is not trivial. Yet, it is the most general way of plotting things, since all functions can be written in the implicit form .
y would work, even Boolean-valued ones (such as inequalities). Common functions such as
atan2 are supported. The pipe
| is interpreted as absolute value. For better speed, do exponentiation using
pow instead of
^. Please note that this uses
1 Implementation details
The advantage of using random sampling is that, with high probability, it will converge towards the correct plot of arbitrary pathological functions. The disadvantage is that it is slow and we are never sure if it is actually correct.
This plotter does not test for divergence, so it cannot distinguish between diverging asymptotes and zeros.
2 Examples of interesting functions
For more cool things to try, check out Samuel Alexander’s blog post.