I am solving some equations in 4 variables, however, there are many solutions which are basically the same but changing relative signs of each other ... i.e. {x->-1,y->1} and {x->1,y->-1}. Nevertheless I am only interested in solutions with positive values for x and negative values for y. Is there anyway to implement this in NSolve? I was trying to add an additional equation
NSolve[eq1==a&&eq2==b ... &&y<0,{x,y}]
However, this is not working. Is it the wrong way tom implement it?
Selectdesired solutions? – BoLe May 24 '13 at 09:38NSolve[(x + y)^2 + (x - y)^2 == 1 && (x + y)^4 + (x - y)^4 == 1 && x > 0 && y > 0, {x, y}]gives only the positive solution wherasNSolve[(x + y)^2 + (x - y)^2 == 1 && (x + y)^4 + (x - y)^4 == 1, {x, y}]gives all four solutions. – Thies Heidecke May 24 '13 at 09:45FindRoot. How would you specifyx > 0then? – BoLe May 24 '13 at 09:49FindRoot, and looking in the documentation I haven't found such a possibility ... Thanks for your answer below! – pablo May 24 '13 at 09:55FindRootyou must provide starting values, seeds. You may want to automate that. See this answer which also links to such functionFindAllCrossings2D[]in particular. – BoLe May 24 '13 at 10:02