MathGroup Archive 2001

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

Search the Archive

Re: Re: Any better way for finding frequencies of list entries?


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?