Relplot: a general equation plotter

Relplot constructs high-resolution PostScript or PDF plots of the solutions to equations on two variables. Unlike most other plotters, it can handle general equations, not just functions. It can handle inequalities, and it can plot multiple equations at once, separated by commas.

What can you plot?


x^3 + y^3 = 3xy,  r^2 = 9/2

Some interesting equations to try:

x^2 * y^2 = 1                            x^3 + y^3 = 3xy
x^y = y^x                                (r-1/2)^5 = 4yx^3 - 4xy^3
ln r = sin 4x^2 + cos 5y^2 + x/4         ((xy(x-y)(x+y)(x^2+y^2-4))^2 - 1) < 1
y>|x| & y<sqrt(exp x + exp(-x) - 2)      y = 3 * x * sin(pi/r)
x^2 <= floor|2y|, x^2>|2y|               (x^2 - y^2) mod 1 = xy mod 1
(5x mod 1 = 0 || 5y mod 1 = 0) & r<2     x+y < sin (5x-5y) && |x| < 1, |x| > 1

Equation(s) to plot (see above for examples):

The region of the X–Y plane to show:

X value of left side:
X value of right side:
Y value of bottom:
Y value of top:
X/Y aspect ratio is 1:1

Hint: Relplot expects an equation such as y=x^2 rather than just a formula like x^2.

Have feedback? Use CIVS to vote on proposed changes to the equation plotter, or to make your own suggestions.


Relplot was written by Andrew Myers at Cornell University. It is written in SML and PostScript. The source code is freely available for noncommercial use, subject to academic integrity constraints; please contact the author.