Minus (x - y)

Inputs

  • Number X
  • Number Y

Outputs

  • X - Y

Algorithm

/**
 * Minus (x - y): 
 *
 * @param x1 Number X
 * @param x2 Number Y
 * @return {Array}
 */
function neuron2(x1, x2)
{
math.config({number: 'BigNumber', precision: 64}); return [math.eval(Number(x1) + '-'+Number(x2)).toString()];
}

console.log(neuron2(821, 126));

Create your family tree for free