прямоугольник функция Numpy
def rect(x):
return where(abs(x)<=0.5, 1, 0)
Real Raccoon
def rect(x):
return where(abs(x)<=0.5, 1, 0)