public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)
% g9 J( @$ ~3 b9 E9 i {/ R! W) @' u4 j, Y
int index = GetEquationIndexByName(eqMgr, name);
4 p# D9 c$ T; f: w3 g, _4 L
Y# x" P1 c. i/ k if (index != -1)0 g3 X; i( v0 }) p! a4 o/ c1 T
{1 X* K7 _* O, o+ |) s
eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;
. X2 ?. ]: `$ _) Y$ W9 k8 |* D) n
, ]6 x8 _2 q# f# {) n" D y# `0 k return true;0 X" n. A# }6 n6 h+ M
}( Y. u" m/ p' z4 l. v
else0 v+ m) X7 \6 f1 H9 s8 r
{- A( W! u6 i; A0 S6 ^; F) Y; z
return false;
- L4 v4 G. v: ^ }
3 m) \) Y" R X3 W9 s }" f" A0 ^" x# o4 k
/ _8 _5 R3 R* V$ x# R& Z, L% `0 ` |