Functions

Plot a function of one variable:

plot x^3 - 6x^2 + 4x + 12

graph sin t + cos (sqrt(3)t)

plot 4/(9*x^(1/4))

Specify an explicit range for the variable:

plot e^x from x=0 to 10

Plot a function where it is real-valued:

real plot -(sqrt(25-y^2))

Plot a special function:

plot Ai(x)

Plot several functions:

plot sin x, cos x, tan x

plot x e^-x, x^2 e^-x, x=0 to 8

Plot a function on a logarithmic scale:

log plot e^x-x

Plot on a log-linear scale:

log-linear plot x^2 log x, x=1 to 10

3D Plots

Plot a function of two variables:

plot sin x cos y

Specify explicit ranges for the variables:

plot x^2 y^3, x=-1..1, y=0..3

Equations

Plot the solution to an equation in two variables:

plot 3x^2-2xy+y^2=1

Plot a quadric surface:

plot x^2 - 3y^2 - z^2 = 1

Inequalities

Plot the region satisfying an inequality in two variables:

plot |x|^3+|y|^3<1

Plot a region satisfying multiple inequalities:

plot x^2+y^2<1 and y>x

Polar Plots

Draw a polar plot:

polar plot r=1+cos theta

Specify a range for the variable theta:

polar plot r=theta, theta=0 to 8 pi

Parametric Plots

Draw a parametric plot:

parametric plot (cos^3 t, sin^3 t)

Specify a range for the parameter:

parametric plot (sin 10t, sin 8t), t=0..2pi

Number Lines

Visualize a set of real numbers on a number line:

number line 2, 3, 5, 7, 11, 13

Show multiple sets on a number line:

number line x^2>5, 0<=x<3