Ask Your Question

b0f00narch's profile - activity

2020-08-04 08:28:29 +0200 received badge  Popular Question (source)
2012-08-09 19:48:24 +0200 received badge  Editor (source)
2012-08-09 19:47:53 +0200 answered a question how to smooth data ?

The array had to be a one dimenzion array, then smoothing worked fine. Nothing wrong with the code.

2012-08-08 16:13:55 +0200 asked a question how to smooth data ?

I tried to use Scipy/numpy example code for smoothing the data. The code didnt work for me. Also I couldnt find a command in Sage. What should I do ?

2012-08-08 15:31:50 +0200 received badge  Supporter (source)
2012-08-08 09:36:06 +0200 asked a question subtract two data tables
ta1=[[1,1],[2,2],[3,3]] 
ta2=[[1,1],[2,1],[3,1]]

ta1_j=[]
ta2_j=[]
for i,j in ta1:
    ta1_j.append(j)
for i,j in ta2:
    ta2_j.append(j)

ta3_j=[]
for i,j in zip(ta1_j,ta2_j):
    ta3_j.append(i-j)

ta3_i=[]
for i,j in ta1:
    ta3_i.append(i)
ta3=zip(ta3_i,ta3_j)    
ta3

I want to subtract table2 from table1 in such way that X stays the same and only Y values are subtracted. The above code works for me, but is there a nicer, better and easier way to subtract tables ?