hejneho matematika 2 - 1/1

Inputs

  • pocet kamaratov

Outputs

  • pocet jablk

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
pocet kamaratov: 12
pocet jablk: 2
2.
pocet kamaratov: 6
pocet jablk: 4
3.
pocet kamaratov: 4
pocet jablk: 6
4.
pocet kamaratov: 2
pocet jablk: 12
5.
pocet kamaratov: 24
pocet jablk: 1

Applicable neurons

  • Plus (x + y)
  • Minus (x - y)
  • Multiple (x × y)
  • Division (x ÷ y)
  • 24
  • character :
  • Destroyed building (windows)
  • begin of start tag
  • character t
  • word hello
  • max (from 2 values)
  • get hours from time (hh:mm:ss)

Algorithm

Test

Code made by AI:
/**
 * 2: 
 *
 * @return {Array}
 */
function neuron502()
{
return [2];
}

/**
 * 4: 
 *
 * @return {Array}
 */
function neuron504()
{
return [4];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * 24: 
 * 
 * @return {Array}
 */
function neuron855()
{
  var outputs = [];

  arr = neuron502();
  outputs[0] = arr[0];

  arr = neuron504();
  outputs[1] = arr[0];

  arr = neuron520(outputs[0], outputs[1]);
  outputs[2] = arr[0];

  return[outputs[2]];
}


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

/**
 * hejneho matematika 2 - 1/1: 
 * 
 * @param x1 pocet kamaratov
 * @return {Array}
 */
function neuron925(x1)
{
  var outputs = [];
  outputs[0] = x1;

  arr = neuron855();
  outputs[1] = arr[0];

  arr = neuron17(outputs[1], outputs[0]);
  outputs[2] = arr[0];

  return[outputs[2]];
}


Code made by AI:

Rodokmen - poznejte své předky | TOPlist U.I., Umělá inteligence