Send your homework as a single ZIP archive with your files, or send a link to your GitHub repo. Try to keep line lengths below 80 characters.
Plot functions sin(x), cos(x), and exp(-x) in a range [0,10] in the same figure. Colors are red, green, and blue, respectively. Lines are solid, dashed, and dotted, respectively. Add a legend.
Generate n=100 random points in a unit square [0,1] × [0,1]. Points are green if the distance from (0,0) is less then 1; they are red otherwise. The marker area of a point (x,y) should be proportional to |x|+|y|.
Create a function that calculates, for any point (x,y), the sum of distances from the two points in the plane: (-1,0) and (1,0). Show the function values using imshow() in a square [-2,2] × [-2,2].