return cn;
}
if (isFunction(mathToParse.trim())){
ASTNode fn = ASTFunction.createFunctionNode(ASTFunction.getFunctionTypeForName(getCandidateFunctionName(mathToParse)));
if(fn.getType().equals(ASTFunctionType.MISCELLANEOUS)){
fn = new ASTMiscellaneousFunction(getCandidateFunctionName(mathToParse));
}
toAdd.addChildNode(fn);
String fnContents=mathToParse.substring(mathToParse.indexOf('(')+1, mathToParse.lastIndexOf(')'));
return parseString(tidyUp(fnContents), fn);
}