Imposing constraints on a system of equations
- To: mathgroup at smc.vnet.net
- Subject: [mg109334] Imposing constraints on a system of equations
- From: Virgil Stokes <vs at it.uu.se>
- Date: Thu, 22 Apr 2010 03:31:16 -0400 (EDT)
A very simple question on imposing conditions/constraints.
I know that a, r, and h must be real and non-negative in the following
system of equations:
eq1=Pi*r^2+2*Pi*r*x==0;
eq2=2*Pi*r*h+(2*Pi*h+4*Pi*r)*x==0;
eq3=2*Pi*r^2+2*Pi*r*h-a==0;
sols=Solve[{eq1,eq2,eq3},{r,h,x}]
How can I impose conditions on this system such that only real solutions
are obtained, and r and h are non-negative?
Thank you,
--V