Assignment 1 Problem 5

115 days ago by emi3489

# Problem a is a graph of the set of complex numbers z such that abs(z-1+I)=2 
       
a=circle((-1,1),2) a.show(figsize=[2,2]) 
       
# Problem b is a graph of the set of complex numbers z such that abs(z-1+I)<=2 
       
b=circle((-1,1),2, color='blue', fill="min") #This is the same circle only filled in as a closed disk b.show(figsize=[2,2]) 
       
# Problem c is a graph of the set of complex numbers z such that Re(z+2-2*I)=3 
       
#This should be a vertical line at x=2. I did not plot this because I could not figure out how to plot a vertical line on Sage 
       
# Problem d is a graph of the set of complex numbers z such that abs(z-I)+abs(z+i)=3 
       
d=ellipse((0,0),1.118,1.5) d.show(figsize=[3,3]) 
       
# Problem e is a graph of the set of complex numbers z such that abs(z)=abs(z+1) 
       
# This should be a vertical line at x=0.5; for the same reason as problem c it is not shown.