I have a homework assignment where I have to make some functions, and autocorrelate, correlate and convolve them. I have to make a single sawtooth function/impulse with edges. I mean that from below x=0
every y=0
then from x€[0;5]
a single sawtooth, and after that again, every y=0
.
And the same thing with a triangle function.
def saw(T, A = 1):
return A*signal.sawtooth(-2*T/pi)
def tri(T, A = 1):
return A*signal.triang(len(T))