I would like to define two rules: one for the material and thickness the second one for volume and mass
rule1={t->1/2,row->1000};
rule2={v->t^3,m->v*row};
now if I used the following:
rule2/.rule1={v->1/8,m->v*1000}
how to replace v in rule2 to get the following:
{v->1/8,m->125}
Set
and allow MMA to do the substitutions for you:t = 1/2; row = 1000; vv = t^3; mm = vv row; Thread[{v, m} -> {vv, mm}]
$\endgroup$ReplacePart[rule2, 2 -> (rule2[[2]] /. rule2[[1]])] /. rule1
$\endgroup$(rule2 /. rule1) /. (lhs_ -> rhs_) :> (lhs -> (rhs /. (rule2 /. rule1)))
$\endgroup$Equal@@@rule1
) then useSolve
. $\endgroup$