Mathematica count

  • Mathematica
  • Thread starter jemma
  • Start date
  • #1
36
0

Main Question or Discussion Point

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
29,305
5,614
I think that is the purpose of Sow and Reap, but I have never actually used them myself.
 

Related Threads on Mathematica count

Replies
2
Views
2K
Replies
3
Views
2K
Replies
0
Views
2K
Replies
1
Views
885
Replies
7
Views
21K
Replies
9
Views
2K
Replies
7
Views
3K
Replies
4
Views
631
Top