if (check.equalsIgnoreCase(functionDerivatives[i])) {
type = i;
break;
}
BigDec coefficient = parser.getCAS().getCoefficient(term, vars);
ConsCell result = coefficient.neq(BigDec.ONE) ? new ConsCell(coefficient, ConsType.NUMBER, new ConsCell('*', ConsType.OPERATOR), ConsType.CONS_CELL).getLastConsCell() : new ConsCell();
if (type > -1 && term.getNextConsCell(offset).length() == 1) {
ConsCell inner = term.getNextConsCell(offset).getCarType() == ConsType.CONS_CELL ? (ConsCell) term.getNextConsCell(offset).getCar() : term.getNextConsCell(offset);
ConsCell functionOutput = Tokenizer.tokenizeString(functionDerivatives[type + 1]);
ArrayList<ConsCell> cells = functionOutput.allInstancesOf(new ConsCell("n", ConsType.IDENTIFIER));
for (ConsCell cell : cells)