gridConstants.Add("DegToRad",M_PI/180.0); Constants are not accessed for calculation from ArrayControl. It is internal to ScatterDraw/Equation.cpp eval.constants.Add("DegToRad",M_PI/180.0); 'Upp::EvalExpr::constants': cannot access private member declared in class 'Upp::EvalExpr'
void ResParallel(const doubleUnit &d) { // if (val + d.val < 1e-100) // throw Exc(t_("Division by zero")); if (!(unit.IsEqual(d.unit) || IsNull(unit) || IsNull(d.unit))) throw Exc(t_("Units does not match in resistor parallel")); if (abs(val*d.val) < 1e-100) val = 0.0; else if (abs(val + d.val) < 1e-100) throw Exc(t_("Division by zero")); val = val*d.val/(val + d.val); }