Inputs
-
height (h)
-
width (w)
-
length (l)
Outputs
Neuron type
Best algorithm has been found - locked
Patterns
Pattern |
Input |
Output |
1. |
height (h): |
1 |
width (w): |
2 |
length (l): |
3 |
|
|
2. |
height (h): |
2 |
width (w): |
2 |
length (l): |
2 |
|
|
Applicable neurons
-
Multiple (x × y)
Algorithm
Test
Code made by AI:
/**
* 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()];
}
/**
* Rectangular cuboid - volume:
*
* @param x1 height (h)
* @param x2 width (w)
* @param x3 length (l)
* @return {Array}
*/
function neuron22(x1, x2, x3)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;
arr = neuron3(outputs[1], outputs[0]);
outputs[3] = arr[0];
arr = neuron3(outputs[3], outputs[2]);
outputs[4] = arr[0];
return[outputs[4]];
}
Code made by AI: