# Pi (π) 3.14

• Pi

## Neuron type

Best algorithm has been found - locked

## Patterns

Pattern Input Output
1.
 Pi: 3.14

## Applicable neurons

• 1
• 3
• 4
• Connect - two inputs
• constant x.x

## Algorithm

### Test

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

/**
* 3:
*
* @return {Array}
*/
function neuron503()
{
return [3];
}

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

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

/**
* Pi (π) 3.14:
*
* @return {Array}
*/
function neuron521()
{
var outputs = [];

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

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

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

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

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

return[outputs[4]];
}

```