Due: Friday, February 15, 2019
Points: 40
The four functions are in the file “funcs.py” available in the assignment area. The intervals they are to be plotted over are:
function | intervals on x axis |
f1 | [-7, -3); (-1, 1); (3, 7] |
f2 | [-7, -4); (4, 7] |
f3 | [-4, 4] |
f4 | [-3, -1); (1, 3] |
What picture does this draw?
Please call your program “plotting.py”.
Hint: If you don’t scale the x and y co-ordinates of the plot, the figure will probably be too small to see it well. I used a scale factor of 25—that is, when I plotted or moved to point (x, y), I multiplied both x and y by 25 before plotting or moving to it. Also, you will need to import the square root function for the functions to work:
from math import sqrtor
from math import sqrt
|
You can also obtain a PDF version of this. Version of February 6, 2019 at 12:24AM |