fonction rectangulaire numpy

def rect(x):
    return where(abs(x)<=0.5, 1, 0)
Real Raccoon