I have the following relations:
Dc == k*t0^2
Dp == k*t1^2
I know that I can do the following:
$\qquad \frac{D_c}{k\space t_0^2}==1 \quad \frac{D_p}{k\space t_1^2}==1 \quad \frac{D_c}{k\space t_0^2}==\frac{D_p}{k\space t_1^2} \quad D_c==\frac{t_0^2}{t_1^2}D_p$
How can I tell Mathematica to do the same thing? That is, given two equations, how do I coerce Mathematica to come up with a value of $D_c$?
eqns = {Dc == k*t0^2, Dp == k*t1^2}; sol = Solve[eqns, Dc, {k}][[1]]
$\endgroup$Solve
accepts an optional argument to designate variable(s) to be eliminated. This argument must be aList
even with a single variable so that the argument is not interpreted as an attempt to specify a domain. The number of variables to solve for plus the number of variables to be eliminated must equal the number of equations. In this case with two equations, you must either solve for two variables or solve for one variable and eliminate one variable. $\endgroup$Solve[]
used to be documented; now it isn't. $\endgroup$