# \\D

• Word

## Neuron type

Best algorithm has been found - locked

## Patterns

Pattern Input Output
1
 Word: \\D

## Applicable neurons

• Connect - three inputs
• character \
• character d
• toUpperCase
• square/rhombus - Perimeter
• Quadratic equation (ax² + bx + c = 0)
• x² - y² = 0 (by y)
• 10
• Rounding to whole thousands of something
• Price with VAT
• Declarative sentence

## Algorithm

### Test

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

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

/**
* 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
*
* @param x1 1. digit
* @param x2 2. digit
* @param x3 3. digit
* @return {Array}
*/
function neuron638(x1, x2, x3)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;

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

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

return[outputs[4]];
}

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

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

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

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

return[outputs[2]];
}

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

/**
* toUpperCase:
*
* @param x1 string
* @return {Array}
*/
function neuron670(x1)
{
return [x1.toString().toUpperCase()];
}

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

/**
* \\D:
*
* @return {Array}
*/
function neuron777()
{
var outputs = [];

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

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

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

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

return[outputs[3]];
}

```