Mathematica count

  • Mathematica
  • Thread starter jemma
  • Start date
  • #1
jemma
36
0
Hi, I wondered if anyone can help. I have some linear equations in which I've found various possible solutions to the variables using NSolve function. For example, for x1, x2, x3 and x4, it has given me ~14 different possible combinations for each x. Is it possible to do a count so if the equations were run in a loop 1000 times, how often would a particular combination be reached?
 

Answers and Replies

  • #2
Dale
Mentor
Insights Author
2021 Award
32,959
10,208
I think that is the purpose of Sow and Reap, but I have never actually used them myself.
 

Suggested for: Mathematica count

  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
3
Views
3K
  • Last Post
Replies
1
Views
1K
Replies
3
Views
2K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
7
Views
4K
  • Last Post
Replies
4
Views
852
  • Last Post
Replies
5
Views
3K
Top