Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2723
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Position |
| Date | 2011-05-25 23:30 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <irk3f8$761$1@smc.vnet.net> (permalink) |
| References | <irijmq$qck$1@smc.vnet.net> |
Am 25.05.2011 11:55, schrieb Joerg Schroeder:
> Dear Group,
>
> I don't understand the following:
>
> I have a list of data and want to find the position of special elements:
>
> data=Table[CDF[BinomialDistribution[150,0.3],k],{k,0,150}]
>
> Position[data,#>=0.95&]
>
> With this I get {} (null set) as an answer, whereas for example Select gives the answer I expect.
>
> Select[data,#>=0.95&]
>
> Do I do something wrong with Position?
Position searches patterns
Position[data, _?(# >= 0.95 &)]
--
Roland Franzius
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Position "Joerg Schroeder" <sd-gymwalsrode@gmx.de> - 2011-05-25 09:55 +0000 Re: Position David Bailey <dave@removedbailey.co.uk> - 2011-05-25 23:32 +0000 Re: Position Roland Franzius <roland.franzius@uos.de> - 2011-05-25 23:30 +0000 Re: Position Wolfgang Windsteiger <Wolfgang.Windsteiger@risc.jku.at> - 2011-05-25 23:31 +0000
csiph-web