[sage-support] Re: Data list

2010-06-11 Thread iDan
On 10 juin, 15:03, Marco Boretto wrote: > I'm tryng to to simple thing like this: > > m=[0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791, > 0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420] > <...> i want to multiply the all the elements for > 10^-6 Hi, Maybe with the function "map"

[sage-support] Re: Data list

2010-06-11 Thread Marco Boretto
Thank you for your answer! Marco On 11 Giu, 08:01, Robert Bradshaw wrote: > On Jun 10, 2010, at 12:22 PM, Christian Stump wrote: > > > > >> m=[0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791, > >> 0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420] > >> m.count > > > len(m) does the job

Re: [sage-support] Re: Data list

2010-06-10 Thread Robert Bradshaw
On Jun 10, 2010, at 12:22 PM, Christian Stump wrote: m=[0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791, 0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420] m.count len(m) does the job, you should probably look into the tutorial at http://www.sagemath.org/doc/tutorial/ for this kind o

[sage-support] Re: Data list

2010-06-10 Thread Christian Stump
> m=[0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791, > 0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420] > m.count len(m) does the job, you should probably look into the tutorial at http://www.sagemath.org/doc/tutorial/ for this kind of questions... m.count is a function returning the