Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Selecting specific solutions in Sage

I have the following solution:

solve(...)=[[xa1 == R*a/((a + b)*p1), xa2 == R*b/(a + b), l1 == (a + b)*(R*b/(a + b))^b*(R*a/((a + b)*p1))^a/R]]

Im aware I can get the whole set of solutions back with the use of

solve(...)[0]
[xa1 == R*a/((a + b)*p1), xa2 == R*b/(a + b), l1 == (a + b)*(R*b/(a + b))^b*(R*a/((a + b)*p1))^a/R]

Im only interested in getting back xa1. Is there a way to do that?

Selecting specific solutions in Sage

I have the following solution:

solve(...)=[[xa1 == R*a/((a + b)*p1), xa2 == R*b/(a + b), l1 == (a + b)*(R*b/(a + b))^b*(R*a/((a + b)*p1))^a/R]]

Im aware I can get the whole set of solutions back with the use of

solve(...)[0]
[xa1 == R*a/((a + b)*p1), xa2 == R*b/(a + b), l1 == (a + b)*(R*b/(a + b))^b*(R*a/((a + b)*p1))^a/R]

Im only interested in getting back xa1. Is there a way to do that?