Dear Alex,
Sorry for not getting back sooner.
Probably the easiest way to do this is to use the SubstitutionVisitor
and there is a method where you can substitute an equation of the form
"x=2" into another.
For example you can do
Node eqn1 = jep.parse("x=2");
Node eqn2 = jep.parse("y=3");
Node eqn3 = jep.parse("x+y+z");
SubstitutionVisitor sv = new SubstitutionVisitor(jep);
eqn3 = sv.substitute(eqn3,eqn1); // 2+y+z
eqn3 = sv.substitute(eqn3,eqn1); // 2+3+z
Rich
--
Richard Morris
Web: www.singsurf.org www.pfaf.org
Email: ri...@singsurf.org
Tel: (+44) 01208 872963
Post: 1 Lerryn View, Lerryn, Lostwithiel, Cornwall, PL22 0QJ