Re: [sage-support] Dirac Comb

2010-07-01 Thread Tobias Katz
Hi, Thanks for your reply! Renaming doesn't work, but what I found out is, that, in my case, it works with the following syntax: sum(function for n_ in np.arange(-11,11,1)) Nevertheless, I'd be interested if there are other people out there working with Signal Theory and stochastic signal descrip

Re: [sage-support] Dirac Comb

2010-06-30 Thread Burcin Erocal
On Sat, 26 Jun 2010 16:01:17 +0200 Tobias Katz wrote: > Hi, > > I got a first result, but it only works when I "type" it in the > command line interface. > > import numpy as np > import pylab as pl > > pl.ion() > pl.grid(True) > > var('t n_ ll ul') > > tt=np.arange(0.01,10,0.01) > > f=sin(t

Re: [sage-support] Dirac Comb

2010-06-26 Thread Tobias Katz
Hi, I got a first result, but it only works when I "type" it in the command line interface. import numpy as np import pylab as pl pl.ion() pl.grid(True) var('t n_ ll ul') tt=np.arange(0.01,10,0.01) f=sin(t)/t ts=0.5 fs=sum(f*dirac_delta(t-(2*n_-1)*ts),n_,0,20)/dirac_delta(0) fl=lambda t:f fl

[sage-support] Dirac Comb

2010-06-26 Thread Tobias Katz
Hi, I played with the dirac_delta function but didn't get the results that I need. In the end, I need to be able to plot and calculate functions that are multiplied with a dirac comb like http://upload.wikimedia.org/wikipedia/commons/6/6a/Dirac-comb_-_Sampling.png But I didn't find out how to do