What is the simplest method to get a vector result?

Alan alan.isaac at gmail.com
Thu Jul 24 15:10:48 CEST 2014


You can use `list(math.sin(x * math.pi / 2) for x in index)` or use `numpy`, which supports array math.



More information about the Python-list mailing list