Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

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]
>


  • Prev by Date: Re: Multiple choice question
  • Next by Date: Contour Plot
  • Previous by thread: Re: Any better way for finding frequencies of list entries?
  • Next by thread: Re: Any better way for finding frequencies of list entries?