Counting how often NSolve returns the same variable combination

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
jemma
Messages
35
Reaction score
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?
 
Physics news on Phys.org