Re: Re: Any better way for finding frequencies of list entries?
- To: mathgroup at smc.vnet.net
- Subject: [mg26993] Re: [mg26961] Re: [mg26923] Any better way for finding frequencies of list entries?
- From: BobHanlon at aol.com
- Date: Tue, 30 Jan 2001 23:22:15 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
DigitCount[Round[Pi*10^56]] {5, 6, 9, 4, 6, 4, 5, 6, 9, 3} Bob Hanlon In a message dated 2001/1/30 5:02:21 AM, hmeier at webshuttle.ch writes: >One can also rely on built-in functions: > >DigitCount[FromDigits[RealDigits[N[Pi,57]][[1]]]] > >{5, 6, 9, 4, 6, 4, 5, 6, 9, 3} > >This is the frequency of the numbers 1,2 ... 0 in N[Pi,57] >