title: Write a loop to select all combination of variable values generating positive equation values in R
body: <p>I have the following four equations (a,b,c,d), with several different variables (x,t,v,w,n,f). My goal would be to try and find all sets of variable values that would generate all positive (and non-zero) numbers for equations(a,b,c,d). A regular loop would just go through each number of the sequence generated and systematically check if it generates a positive value or not. I want it to pick up random numbers from each sequence and test it against the others in R.
  For example (x=8, t = 2.1,v=13,w=1,n=10,f=1) is a possible set of combinations.</p>
  
  <p>Please do not suggest analytically solving for these and then finding out values. These are simply representations of equations I'm dealing with. The equations I have are quite complex, and more than 15 variables. </p>
  
  <pre><code>#Equations
  a &lt;- x * t - 2*x
  b &lt;- v - x^2 
  c &lt;- x - w*t - t*t 
  d &lt;- (n - f)/t
  
  x &lt;- seq(from = 0.0001, to = 1000, by = 0.1)
  t &lt;- seq(from = 0.0001, to = 1000, by = 0.1)
  v &lt;- seq(from = 0.0001, to = 1000, by = 0.1)
  w &lt;- seq(from = 0.0001, to = 1000, by = 0.1)
  n &lt;- seq(from = 0.0001, to = 1000, by = 0.1)
  f &lt;- seq(from = 0.0001, to = 1000, by = 0.1)
  </code></pre>