Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica count

  1. Mar 4, 2010 #1
    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?
  2. jcsd
  3. Mar 13, 2010 #2


    Staff: Mentor

    I think that is the purpose of Sow and Reap, but I have never actually used them myself.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook