packages/solver/lib/node/PolynomialTerm.js
function negativeCoefficient(node) {
  if (NodeType.isConstant(node)) {
    node = NodeCreator.constant(0 - parseFloat(node.value));
  }
  else {
    const numeratorValue = 0 - parseFloat(node.args[0].value);
    node.args[0] = NodeCreator.constant(numeratorValue);
  }
  return node;
}
function negativeCoefficient(node) {
  if (NodeType.isConstant(node)) {
    node = NodeCreator.constant(0 - parseFloat(node.value));
  }
  else {
    const numeratorValue = 0 - parseFloat(node.args[0].value);
    node.args[0] = NodeCreator.constant(numeratorValue);
  }
  return node;
}
function negativeCoefficient ( node ) { if ( NodeType . isConstant ( node ) ) { node = NodeCreator . constant ( 0 - parseFloat ( node . value ) ) ; } else { const numeratorValue = 0 - parseFloat ( node . args [ 0 ] . value ) ; node . args [ 0 ] = NodeCreator . constant ( numeratorValue ) ; } return node ; }
Multiplies `node`, a constant or fraction of two constant nodes, by -1 Returns a node
Multiplies node a constant or fraction of two constant nodes by - 1 Returns a node