packages/solver/lib/simplifyExpression/functionsSearch/nthRoot.js
function isMultiplicationOfEqualNodes(node) {
  if (!Node.Type.isOperator(node) || node.op !== '*') {
    return false;
  }

  // return if they are all equal nodes
  return node.args.reduce((a, b) => {
    return a.equals(b);
  });

}
function isMultiplicationOfEqualNodes(node) {
  if (!Node.Type.isOperator(node) || node.op !== '*') {
    return false;
  }

  // return if they are all equal nodes
  return node.args.reduce((a, b) => {
    return a.equals(b);
  });

}
function isMultiplicationOfEqualNodes ( node ) { if ( ! Node . Type . isOperator ( node ) || node . op !== '*' ) { return false ; } // return if they are all equal nodes return node . args . reduce ( ( a , b ) => { return a . equals ( b ) ; } ) ; }
Simple helper function which determines a node is a multiplication node of all equal nodes
Simple helper function which determines a node is a multiplication node of all equal nodes