Is character uppercase?

Inputs

  • Character

Outputs

  • Yes / No

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
Character: A
Yes / No: 1
2.
Character: B
Yes / No: 1
3.
Character: v
Yes / No: 0
4.
Character: h
Yes / No: 0

Applicable neurons

  • a > b
  • a = b
  • a < b
  • toUpperCase
  • toLowerCase
  • First letter to small letter
  • a ≤ b
  • a ≥ b
  • a is not b
  • IF a=b THEN c ELSE d
  • IF (1) THEN a ELSE b
  • Rectangular cuboid - Surface Area
  • fileName from path
  • Sine (sinus) - degrees
  • character l
  • (a, b)
  • convert minutes and seconds into MM:SS
  • a-z
  • .
  • mat 33/1

Algorithm

Test

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

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


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

/**
 * Substring (from start to position): 
 * 
 * @param x1 String
 * @param x2 End position
 * @return {Array}
 */
function neuron526(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

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

  return[outputs[3]];
}


/**
 * Get first letter: 
 * 
 * @param x1 String
 * @return {Array}
 */
function neuron671(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

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

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


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

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

/**
 * First letter to small letter: 
 * 
 * @param x1 string
 * @return {Array}
 */
function neuron680(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

;   outputs[2] = arr[1];

  arr = neuron679(outputs[1]);
  outputs[3] = arr[0];

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

  return[outputs[4]];
}


/**
 * a = b: IF a=b THEN 1 ELSE 0;
 *
 * @param x1 a
 * @param x2 b
 * @return {Array}
 */
function neuron591(x1, x2)
{
return [(x1 == x2) ? 1 : 0];
}

/**
 * 1: 
 *
 * @return {Array}
 */
function neuron501()
{
return [1];
}

/**
 * Minus (x - y): 
 *
 * @param x1 Number X
 * @param x2 Number Y
 * @return {Array}
 */
function neuron2(x1, x2)
{
math.config({number: 'BigNumber', precision: 64}); return [math.eval(Number(x1) + '-'+Number(x2)).toString()];
}

/**
 * NOT: 
 * 
 * @param x1 1/0
 * @return {Array}
 */
function neuron567(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


/**
 * a is not b: 
 * 
 * @param x1 a
 * @param x2 b
 * @return {Array}
 */
function neuron704(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

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

  return[outputs[3]];
}


/**
 * Is character uppercase?: 
 * 
 * @param x1 Character
 * @return {Array}
 */
function neuron908(x1)
{
  var outputs = [];
  outputs[0] = x1;

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

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

  return[outputs[2]];
}


Code made by AI:

Create your family tree for free