2021-02-22 MATH 3600 Growth Rates

271 days ago by calkin

def s(n): return(10*4^n*(3+(-1)^n)) 
       
s_list=[s(i) for i in srange(20) ] 
       
list_plot(s_list,plotjoined=True) 
       
s_ratio_list =[s(i+1)/s(i) for i in srange(20) ] 
       
list_plot(s_ratio_list,plotjoined=True) 
       
s_log_list=[log(s(i)) for i in srange(20) ] 
       
A=list_plot(s_log_list,plotjoined=True) 
       
B=list_plot(s_log_list,plotjoined=True, color='red') 
       
show(A+B)