Examples: Plotting & Graphics
 
Plotting & Graphics
Functions
plot a function of one variable
plot x^3 - 6x^2 + 4x + 12
graph sin t + cos (sqrt(3)t)
specify an explicit range for the variable
plot e^x from x=0 to 10
plot a special function
plot Ai(x)
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
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