Ask Your Question

aguu's profile - activity

2016-06-29 10:12:21 +0200 received badge  Famous Question (source)
2015-10-02 11:14:22 +0200 received badge  Notable Question (source)
2015-04-07 15:00:47 +0200 received badge  Popular Question (source)
2014-09-25 18:30:48 +0200 received badge  Editor (source)
2014-09-25 17:54:35 +0200 asked a question 'unable to simplify to float approximation'
#example a=0, b=10    
N=10000    
y = [random() for i in range(N)]    
A = []    
a=0    
b=10    
f = a*sin(x)+b*cos(2*x)    
for i in y:    
    f31 = f + normalvariate(0,1)    
    A.append(f31)    
v1 = finance.TimeSeries(A)    
p = v1.plot_histogram(bins=100,color='black', normalize=True)    
p.set_aspect_ratio('automatic')    
p

a it should be a * sin and b * cos
not displayed

What is wrong??

Thanks