try {
ExpressionImpl x1 = new ExpressionImpl(s);
java.util.List l=external;
x1.setExternalFunctions(l);
x1.prepare();
Object o1 = x1.evaluate(variables);
if(JavexUtils.isNumber(o1) && JavexUtils.isNumber(r)){
if((Double)JavexUtils.getValue(o1)-(Double)JavexUtils.getValue(r)!=0){
System.out.println(s + " : error, was " + o1.toString() + " expected " + r.toString());
}