lib/simplifyExpression/collectAndCombineSearch/addLikeTerms.js
// that is a constant or constant fraction.
that is a constant or constant fraction.
that is a constant or constant fraction .
function evaluateCoefficientSum(node) {
  const coefficientSum = node.cloneDeep().args[0];
  const childStatus = evaluateConstantSum(coefficientSum);
  return Node.Status.childChanged(node, childStatus, 0);
}
function evaluateCoefficientSum ( node ) { const coefficientSum = node . cloneDeep ( ) . args [ 0 ] ; const childStatus = evaluateConstantSum ( coefficientSum ) ; return Node . Status . childChanged ( node , childStatus , 0 ) ; }
that is a constant or constant fraction.
that is a constant or constant fraction .
// the node is now always a * node with the left child the coefficent sum // e.g. (2 + 4 + 5) and the right node the symbol part e.g. x or y^2 // so we want to evaluate args[0]