Python Turtle Graphics, how to plot functions over an interval?
- by TheDragonAce
I need to plot a function over a specified interval. The function is f1, which is shown below in the code, and the interval is [-7, -3]; [-1, 1]; [3, 7] with a step of .01. When I execute the program, nothing is drawn. Any ideas?
import turtle
from math import sqrt
wn = turtle.Screen()
wn.bgcolor("white")
wn.title("Plotting")
mypen =…