[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

x=np.linspace(0,2*math.pi,n) n=len(x) r=int(math.ceil(f*n)) h=[np.sort(np.abs(x-x[i]))[r] for i in range(n)] this is part of a python code. the last line is confusing? x is a matrix and x[i] is a number. how calculate x-x[i] for each i? why the put r in [] ?

- Prev by Date:
**when uses time.clock,there are always mistakes** - Next by Date:
**braket an matrix in python** - Previous by thread:
**no explanation towards not installing my application//** - Next by thread:
**braket an matrix in python** - Index(es):