Inputs
Outputs
Neuron type
Best algorithm has been found - locked
Patterns
Pattern |
Input |
Output |
1. |
|
|
3. |
|
|
4. |
|
|
Applicable neurons
-
1 mile into kilometers
-
convert a number into a hexadecimal string
-
convert a hexadecimal string into a number
-
Rectangle - circuit
-
Price with VAT
-
Get first letter
-
Capitalize the first letter
-
character (
-
60
-
Contains string any digit?
-
n*
-
IF (1) THEN a ELSE b
-
Is X divisible by Y...
Algorithm
Test
Code made by AI:
/**
* 0:
*
* @return {Array}
*/
function neuron500()
{
return [0];
}
/**
* 1:
*
* @return {Array}
*/
function neuron501()
{
return [1];
}
/**
* 3:
*
* @return {Array}
*/
function neuron503()
{
return [3];
}
/**
* 4:
*
* @return {Array}
*/
function neuron504()
{
return [4];
}
/**
* 6:
*
* @return {Array}
*/
function neuron506()
{
return [6];
}
/**
* 9:
*
* @return {Array}
*/
function neuron509()
{
return [9];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* 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()];
}
/**
* constant x.x: Connect two numbers to number with a decimal point
*
* @param x1 Number before the decimal point
* @param x2 Number after the decimal point
* @return {Array}
*/
function neuron539(x1, x2)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
arr = neuron510();
outputs[2] = arr[0];
arr = neuron520(outputs[0], outputs[2]);
outputs[3] = arr[0];
arr = neuron520(outputs[3], outputs[1]);
outputs[4] = arr[0];
return[outputs[4]];
}
/**
* constant x.xx:
*
* @param x1 1
* @param x2 2
* @param x3 3
* @return {Array}
*/
function neuron711(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 = neuron539(outputs[0], outputs[3]);
outputs[4] = arr[0];
return[outputs[4]];
}
/**
* constant x.xxx:
*
* @param x1 1
* @param x2 2
* @param x3 3
* @param x4 4
* @return {Array}
*/
function neuron712(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 = neuron711(outputs[0], outputs[1], outputs[4]);
outputs[5] = arr[0];
return[outputs[5]];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* constant x.xxxx:
*
* @param x1 1
* @param x2 2
* @param x3 3
* @param x4 4
* @param x5 5
* @return {Array}
*/
function neuron713(x1, x2, x3, x4, x5)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;
outputs[3] = x4;
outputs[4] = x5;
arr = neuron712(outputs[0], outputs[1], outputs[2], outputs[3]);
outputs[5] = arr[0];
arr = neuron520(outputs[5], outputs[4]);
outputs[6] = arr[0];
return[outputs[6]];
}
/**
* constant x.xxxxx:
*
* @param x1 1
* @param x2 2
* @param x3 3
* @param x4 4
* @param x5 5
* @param x6 6
* @return {Array}
*/
function neuron714(x1, x2, x3, x4, x5, x6)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;
outputs[3] = x4;
outputs[4] = x5;
outputs[5] = x6;
arr = neuron520(outputs[1], outputs[2]);
outputs[6] = arr[0];
arr = neuron713(outputs[0], outputs[6], outputs[3], outputs[4], outputs[5]);
outputs[7] = arr[0];
return[outputs[7]];
}
/**
* 1 mile into kilometers:
*
* @return {Array}
*/
function neuron566()
{
var outputs = [];
arr = neuron500();
outputs[0] = arr[0];
arr = neuron501();
outputs[1] = arr[0];
arr = neuron503();
outputs[2] = arr[0];
arr = neuron504();
outputs[3] = arr[0];
arr = neuron506();
outputs[4] = arr[0];
arr = neuron509();
outputs[5] = arr[0];
arr = neuron714(outputs[1], outputs[4], outputs[0], outputs[5], outputs[2], outputs[3]);
outputs[6] = arr[0];
return[outputs[6]];
}
/**
* convert a number into a hexadecimal string:
*
* @param x1 number
* @return {Array}
*/
function neuron729(x1)
{
return[(Number(x1).toString(16))];
}
/**
* Decimal to Hexadecimal:
*
* @param x1 Decimal
* @return {Array}
*/
function neuron920(x1)
{
var outputs = [];
outputs[0] = x1;
arr = neuron566();
outputs[1] = arr[0];
arr = neuron729(outputs[0]);
outputs[2] = arr[0];
return[outputs[2]];
}
Code made by AI: