Loading [MathJax]/jax/output/HTML-CSS/jax.js

Lesson goal: For loops and plotting parabolas

Previous: Graph the absolute value | Home | Next: Graph a function

Parabolas are those "U"-shaped functions that have the form of y=A(xB)2+C. Plotting parabolas is a great way to learning how the parameters like A, B and C effect the look and shape of a parabola. You can learn how to plot parabolas here.

Now you try. Try fixing the y= statement and the pset statement to plot the variable x on the x-axis and y on the y-axis.

Type your code here:

 
1
pcls(0)
2
for x=-100,100 do
3
  y=
4
  pset( , )
5
end

See your results here: