I wrote the following code:
Solve[{x == VIN/VOUT, VOUT == 5 VIN}, {x}]
Mathematica does not solve it. How can I get the result x=1/5?
Thank you so much for your willingness.
Solve[{x == VIN/VOUT, VOUT == 5 VIN}, {x, VOUT}]
(*{{x -> 1/5, VOUT -> 5 VIN}}*)
Solve[{x == VIN/VOUT, VOUT == 5 VIN}]
$\endgroup$
Solve[{x == VIN/VOUT, VOUT == 5 VIN}, {x}, MaxExtraConditions -> 1]
$\endgroup$
Commented
Jul 26, 2018 at 14:24
Solve[{x == VIN/VOUT, VOUT == 5 VIN}, x, {VOUT}]
$\endgroup$
Commented
Jul 26, 2018 at 15:38
{VOUT}
. If you were to enter just VOUT
then Mma would first try to interpreted it as a domain resulting in the warning: Solve::bdomv: Warning: VOUT is not a valid domain specification. Assuming it is a variable to eliminate.
and then give the correct output.
$\endgroup$
Commented
Jul 30, 2018 at 20:55
Reduce[
{
x == VIN/VOUT,
VOUT == 5 VIN
}, {x}
]
(* VIN == VOUT/5 && x == 1/5 && VOUT != 0 *)
Solve@Reduce[
{
x == VIN/VOUT,
VOUT == 5 VIN
}, {x}
]
(* {{VOUT -> 5 VIN, x -> 1/5}} *)
Solve[Eliminate[{x == VIN/VOUT, VOUT == 5 VIN}, {VOUT}], {x}]
giving{{x -> 1/5}}
$\endgroup$