Convert date (yyyy-mm-dd) to year, month, day

Inputs

  • date (yyyy-mm-dd)

Outputs

  • year
  • month
  • day

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
date (yyyy-mm-dd): 2018-01-30
year: 2018
month: 1
day: 30
2.
date (yyyy-mm-dd): 2010-12-01
year: 2010
month: 12
day: 1
3.
date (yyyy-mm-dd): 2011-11-05
year: 2011
month: 11
day: 5

Applicable neurons

  • get month from date (yyyy-mm-dd)
  • get year from date (yyyy-mm-dd)
  • get day from date (yyyy-mm-dd)
  • name into end tag
  • Get first word
  • a ≥ b
  • constant x.xx

Algorithm

Test

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

/**
 * character -: 
 *
 * @return {Array}
 */
function neuron511()
{
return['-'];
}

/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Substring (from position to end): 
 * 
 * @param x1 MyString
 * @param x2 start position
 * @return {Array}
 */
function neuron529(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[0]);
  outputs[2] = arr[0];

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

  return[outputs[3]];
}


/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * Get after substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron531(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[1]);
  outputs[2] = arr[0];

  arr = neuron529(outputs[0], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron523(outputs[0], outputs[1]);
  outputs[4] = arr[0];

  arr = neuron529(outputs[3], outputs[4]);
  outputs[5] = arr[0];

  return[outputs[5]];
}


/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Get before substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron532(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

  arr = neuron500();
  outputs[3] = arr[0];

  arr = neuron525(outputs[0], outputs[2], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * IF: IF a THEN b ELSE c;
 *
 * @param x1 condition (1/0)
 * @param x2 variable for 1
 * @param x3 variable for 0
 * @return {Array}
 */
function neuron579(x1, x2, x3)
{
return [(x1) ? x2 : x3];
}

/**
 * Cut String At specific character: 
 * 
 * @param x1 string
 * @param x2 specific character
 * @return {Array}
 */
function neuron822(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

  arr = neuron579(outputs[2], outputs[2], outputs[0]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 6: 
 *
 * @return {Array}
 */
function neuron506()
{
return [6];
}

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

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

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

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

  arr = neuron520(outputs[1], outputs[0]);
  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()];
}

/**
 * seconds into minutes: 
 * 
 * @param x1 seconds
 * @return {Array}
 */
function neuron735(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * character .: 
 *
 * @return {Array}
 */
function neuron510()
{
return['.'];
}

/**
 * character .: 
 *
 * @return {Array}
 */
function neuron510()
{
return['.'];
}

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

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

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

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Substring (from position to end): 
 * 
 * @param x1 MyString
 * @param x2 start position
 * @return {Array}
 */
function neuron529(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[0]);
  outputs[2] = arr[0];

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

  return[outputs[3]];
}


/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * Get after substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron531(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[1]);
  outputs[2] = arr[0];

  arr = neuron529(outputs[0], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron523(outputs[0], outputs[1]);
  outputs[4] = arr[0];

  arr = neuron529(outputs[3], outputs[4]);
  outputs[5] = arr[0];

  return[outputs[5]];
}


/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Get before substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron532(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

  arr = neuron500();
  outputs[3] = arr[0];

  arr = neuron525(outputs[0], outputs[2], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * a = b: IF a=b THEN 1 ELSE 0;
 *
 * @param x1 a
 * @param x2 b
 * @return {Array}
 */
function neuron591(x1, x2)
{
return [(x1 == x2) ? 1 : 0];
}

/**
 * IF: IF a THEN b ELSE c;
 *
 * @param x1 condition (1/0)
 * @param x2 variable for 1
 * @param x3 variable for 0
 * @return {Array}
 */
function neuron579(x1, x2, x3)
{
return [(x1) ? x2 : x3];
}

/**
 * IF a=b THEN c ELSE d: 
 * 
 * @param x1 a
 * @param x2 b
 * @param x3 c
 * @param x4 d
 * @return {Array}
 */
function neuron724(x1, x2, x3, x4)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;
  outputs[3] = x4;

  arr = neuron591(outputs[1], outputs[0]);
  outputs[4] = arr[0];

  arr = neuron579(outputs[4], outputs[2], outputs[3]);
  outputs[5] = arr[0];

  return[outputs[5]];
}


/**
 * empty string change into zero: 
 * 
 * @param x1 any string
 * @return {Array}
 */
function neuron743(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * after decimal point: 
 * 
 * @param x1 number with decimal point
 * @return {Array}
 */
function neuron741(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  arr = neuron510();
  outputs[4] = arr[0];

  arr = neuron532(outputs[3], outputs[1]);
  outputs[5] = arr[0];

  arr = neuron743(outputs[5]);
  outputs[6] = arr[0];

  return[outputs[6]];
}


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

/**
 * decimal part of a number: 
 * 
 * @param x1 number with decimal point
 * @return {Array}
 */
function neuron748(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

  arr = neuron741(outputs[0]);
  outputs[2] = arr[0];

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

  return[outputs[3]];
}


/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 6: 
 *
 * @return {Array}
 */
function neuron506()
{
return [6];
}

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

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

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

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

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

  return[outputs[2]];
}


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

/**
 * minutes into seconds: 
 * 
 * @param x1 minutes
 * @return {Array}
 */
function neuron736(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * character .: 
 *
 * @return {Array}
 */
function neuron510()
{
return['.'];
}

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

/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Get before substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron532(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

  arr = neuron500();
  outputs[3] = arr[0];

  arr = neuron525(outputs[0], outputs[2], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * before decimal point: 
 * 
 * @param x1 number with decimal point
 * @return {Array}
 */
function neuron742(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  return[outputs[3]];
}


/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 1: 
 *
 * @return {Array}
 */
function neuron501()
{
return [1];
}

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

/**
 * Connect - four inputs: 
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @param x4 string D
 * @return {Array}
 */
function neuron565(x1, x2, x3, x4)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;
  outputs[3] = x4;

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

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

  arr = neuron520(outputs[0], outputs[5]);
  outputs[6] = arr[0];

  return[outputs[6]];
}


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

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

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

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

  return[outputs[2]];
}


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

/**
 * Round to an integer: round(x)
 *
 * @param x1 Value
 * @return {Array}
 */
function neuron620(x1)
{
return[Math.round(Number(x1))]
}

/**
 * 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()];
}

/**
 * Rounding to whole thousands of something: round(x, 3)
 * 
 * @param x1 Value
 * @return {Array}
 */
function neuron627(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  arr = neuron620(outputs[2]);
  outputs[3] = arr[0];

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

  return[outputs[4]];
}


/**
 * convert seconds into minutes and seconds: 
 * 
 * @param x1 seconds
 * @return {Array}
 */
function neuron749(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

  arr = neuron748(outputs[1]);
  outputs[2] = arr[0];

  arr = neuron736(outputs[2]);
  outputs[3] = arr[0];

  arr = neuron742(outputs[1]);
  outputs[4] = arr[0];

  arr = neuron627(outputs[3]);
  outputs[5] = arr[0];

  return[outputs[4], outputs[5]];
}


/**
 * get month from date (yyyy-mm-dd): 
 * 
 * @param x1 date
 * @return {Array}
 */
function neuron886(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

  arr = neuron511();
  outputs[2] = arr[0];

  arr = neuron531(outputs[0], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron822(outputs[3], outputs[2]);
  outputs[4] = arr[0];

  arr = neuron749(outputs[4]);
  outputs[5] = arr[0];

;   outputs[6] = arr[1];

  return[outputs[6]];
}


/**
 * character -: 
 *
 * @return {Array}
 */
function neuron511()
{
return['-'];
}

/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Get before substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron532(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

  arr = neuron500();
  outputs[3] = arr[0];

  arr = neuron525(outputs[0], outputs[2], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * IF: IF a THEN b ELSE c;
 *
 * @param x1 condition (1/0)
 * @param x2 variable for 1
 * @param x3 variable for 0
 * @return {Array}
 */
function neuron579(x1, x2, x3)
{
return [(x1) ? x2 : x3];
}

/**
 * Cut String At specific character: 
 * 
 * @param x1 string
 * @param x2 specific character
 * @return {Array}
 */
function neuron822(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

  arr = neuron579(outputs[2], outputs[2], outputs[0]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * get year from date (yyyy-mm-dd): 
 * 
 * @param x1 Date (yyyy-mm-dd)
 * @return {Array}
 */
function neuron887(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * character -: 
 *
 * @return {Array}
 */
function neuron511()
{
return['-'];
}

/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * PositionLast: Search last occurrence
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron581(x1, x2)
{
return [x1.toString().lastIndexOf(x2)];
}

/**
 * Plus (x + y): The addition of two whole numbers is the total amount of those quantities combined.
 *
 * @param x1 first number
 * @param x2 second number
 * @return {Array}
 */
function neuron1(x1, x2)
{
math.config({number: 'BigNumber', precision: 64}); return [math.eval(Number(x1) + '+'+Number(x2)).toString()];
}

/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Substring (from position to end): 
 * 
 * @param x1 MyString
 * @param x2 start position
 * @return {Array}
 */
function neuron529(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[0]);
  outputs[2] = arr[0];

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

  return[outputs[3]];
}


/**
 * Get after last substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron618(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[1]);
  outputs[2] = arr[0];

  arr = neuron581(outputs[0], outputs[1]);
  outputs[3] = arr[0];

  arr = neuron1(outputs[2], outputs[3]);
  outputs[4] = arr[0];

  arr = neuron529(outputs[0], outputs[4]);
  outputs[5] = arr[0];

  return[outputs[5]];
}


/**
 * 1: 
 *
 * @return {Array}
 */
function neuron501()
{
return [1];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

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

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

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

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

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

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

  return[outputs[3]];
}


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

/**
 * Round to an integer: round(x)
 *
 * @param x1 Value
 * @return {Array}
 */
function neuron620(x1)
{
return[Math.round(Number(x1))]
}

/**
 * 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()];
}

/**
 * Rounding to whole hundredths of something: round(x, 2)
 * 
 * @param x1 Value
 * @return {Array}
 */
function neuron623(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  arr = neuron620(outputs[2]);
  outputs[3] = arr[0];

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

  return[outputs[4]];
}


/**
 * get day from date (yyyy-mm-dd): 
 * 
 * @param x1 date
 * @return {Array}
 */
function neuron893(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  arr = neuron623(outputs[2]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * Convert date (yyyy-mm-dd) to year, month, day: 
 * 
 * @param x1 date (yyyy-mm-dd)
 * @return {Array}
 */
function neuron904(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

  arr = neuron887(outputs[0]);
  outputs[2] = arr[0];

  arr = neuron893(outputs[0]);
  outputs[3] = arr[0];

  return[outputs[2], outputs[1], outputs[3]];
}


Code made by AI:

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