Skip to main content
3 of 5
added 141 characters in body
Conor Cosnett
  • 7.7k
  • 1
  • 24
  • 47

Tally can certainly count the occurrances of eigenvalues in your list called vals. For instance Tally[vals] tells me that there are 2 instances of $10 \pi^{2}$ and 1 instance of $5 \pi^{2}$.

enter image description here


Looking at Tally in the documentation I see that the word "multiplicities" means the number of instances of each distinct element in a list.

enter image description here


I notice that your code is producing a different vals in my notebook! Please quit your kernel and re-evaluate!

enter image description here


Also Wolfram mentions this in his documentation.

enter image description here

Conor Cosnett
  • 7.7k
  • 1
  • 24
  • 47