2 x (HH:MM:SS into seconds)

Inputs

  • HH:MM:SS 1
  • HH:MM:SS 2

Outputs

  • seconds 1
  • seconds 2

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
HH:MM:SS 1: 00:01:00
HH:MM:SS 2: 00:00:10
seconds 1: 60
seconds 2: 10
2.
HH:MM:SS 1: 01:00:07
HH:MM:SS 2: 00:10:05
seconds 1: 3607
seconds 2: 605
3.
HH:MM:SS 1: 10:01:00
HH:MM:SS 2: 00:00:00
seconds 1: 36060
seconds 2: 0

Applicable neurons

  • seconds into minutes
  • minutes into seconds
  • convert seconds into MM:SS
  • convert minutes and seconds into MM:SS
  • convert hours, minutes and seconds into HH:MM:SS
  • convert seconds into minutes and seconds
  • get hours from time (hh:mm:ss)
  • get minutes from time (hh:mm:ss)
  • get seconds from time (hh:mm:ss)
  • convert HH:MM:SS into seconds
  • convert seconds into hours, minutes and seconds
  • seconds per day
  • convert HH:MM:SS into hours, minutes, seconds
  • Rectangle - perimeter
  • Connect - three inputs
  • a < b
  • Rounding to whole tenths of something
  • Midpoint (3d)
  • delete a period at the end of a sentence
  • a ≥ b

Algorithm

Test

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

/**
 * 5: 
 *
 * @return {Array}
 */
function neuron505()
{
return [5];
}

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

/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

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

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

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

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

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

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


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


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

/**
 * get hours from time (hh:mm:ss): 
 * 
 * @param x1 time (hh:mm:ss)
 * @return {Array}
 */
function neuron889(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  return[outputs[3]];
}


/**
 * 8: 
 *
 * @return {Array}
 */
function neuron508()
{
return [8];
}

/**
 * 5: 
 *
 * @return {Array}
 */
function neuron505()
{
return [5];
}

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

/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

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

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

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

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

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

  arr = neuron585(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]];
}


/**
 * 8: 
 *
 * @return {Array}
 */
function neuron508()
{
return [8];
}

/**
 * 5: 
 *
 * @return {Array}
 */
function neuron505()
{
return [5];
}

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

/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

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

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

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

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

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

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


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


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

/**
 * get hours from time (hh:mm:ss): 
 * 
 * @param x1 time (hh:mm:ss)
 * @return {Array}
 */
function neuron889(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  return[outputs[3]];
}


/**
 * get minutes from time (hh:mm:ss): 
 * 
 * @param x1 hh:mm:ss
 * @return {Array}
 */
function neuron890(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  return[outputs[3]];
}


/**
 * 8: 
 *
 * @return {Array}
 */
function neuron508()
{
return [8];
}

/**
 * 5: 
 *
 * @return {Array}
 */
function neuron505()
{
return [5];
}

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

/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

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

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

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

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

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

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


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


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

/**
 * x to the 2 (x²): x squared
 * 
 * @param x1 Number X
 * @return {Array}
 */
function neuron7(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

  return[outputs[1]];
}


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

/**
 * 5: 
 *
 * @return {Array}
 */
function neuron505()
{
return [5];
}

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

/**
 * Half (0.5): 
 * 
 * @return {Array}
 */
function neuron522()
{
  var outputs = [];

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

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

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

  return[outputs[2]];
}


/**
 * x to the a  (xª): value of the number x to be the power of a
 *
 * @param x1 x - The base
 * @param x2 a - The exponent
 * @return {Array}
 */
function neuron18(x1, x2)
{
return[Math.pow(Number(x1), Number(x2))];
}

/**
 * Square root (√¯): 
 * 
 * @param x1 Number X
 * @return {Array}
 */
function neuron554(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * Absolute value: 
 * 
 * @param x1 Number
 * @return {Array}
 */
function neuron570(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * get seconds from time (hh:mm:ss): 
 * 
 * @param x1 hh:mm:ss
 * @return {Array}
 */
function neuron891(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  return[outputs[3]];
}


/**
 * convert HH:MM:SS into hours, minutes, seconds: 
 * 
 * @param x1 hh:mm:ss
 * @return {Array}
 */
function neuron896(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

  return[outputs[1], outputs[2], 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]];
}


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

/**
 * convert HH:MM:SS into seconds: 
 * 
 * @param x1 hh:mm:ss
 * @return {Array}
 */
function neuron892(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

;   outputs[2] = arr[1];

;   outputs[3] = arr[2];

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

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

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

  arr = neuron1(outputs[6], outputs[3]);
  outputs[7] = arr[0];

  arr = neuron896(outputs[1]);
  outputs[8] = arr[0];

;   outputs[9] = arr[1];

;   outputs[10] = arr[2];

  return[outputs[7]];
}


/**
 * 2 x (HH:MM:SS into seconds): 
 * 
 * @param x1 HH:MM:SS 1
 * @param x2 HH:MM:SS 2
 * @return {Array}
 */
function neuron900(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

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

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


Code made by AI:

Create your family tree for free