1 | initial version |
Would
[n(x) for x in ( sin(1), cos(1), pi/4 )]
count as a single command? If L
is the list of numbers, say L=( sin(1), cos(1), pi/4) to ( sin(1).n() , cos(1).n() , pi/4.n() )
, then map(n,L)
should do the job.
2 | No.2 Revision |
Would
[n(x) for x in ( sin(1), cos(1), pi/4 )]
count as a single command? If L
is the list of numbers, say L=( sin(1), cos(1),
, then pi/4) to ( sin(1).n() , cos(1).n() , pi/4.n() )pi/4)map(n,L)
should do the job.