What is the simplest method to get a vector result?

Alan alan.isaac at gmail.com
Thu Jul 24 09:10:48 EDT 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