where formula is a mathematical expression (e.g. "x^3 - 4*x"), evaluated across the interval $[x_{\text{low}}, x_{\text{high}}]$ in steps of dx.
It includes interactive coordinate crosshairs: when you move your mouse over the plotted curve, crosshairs lock onto the line and display the exact numerical $(x, y)$ coordinates.
graph(func,xlow,xhigh,dx)
Move the mouse over a dotted box for more information.
Now you try. Try plotting a damped wave like "sin(5*x) / (1 + x^2)" over the domain -4 to 4!
Type your code here:
See your results here:
The code has ???? for the formula string func_str. Replace ???? with "x^3 - 4*x" and click Run to plot the interactive chart!
Notes:
graph(func, xlow, xhigh, dx, title, xtitle, ytitle) evaluates func across the interval $[x_{\text{low}}, x_{\text{high}}]$.
Mathematical functions you can use in your formula string include: sin(x), cos(x), tan(x), sqrt(x), abs(x), math.exp(x), and math.log(x).
Use the Download PNG button at the top right of the chart to save a high-resolution copy of your graph!
Share your code
Show a friend, family member, or teacher what you've done!