Examples by Topic

Plotting & Graphics

 
Mathematics
Plotting & Graphics

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

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