Professional Documents
Culture Documents
By
Ian Beardsley
3 of 79
5 of 79
6 of 79
7 of 79
8 of 79
9 of 79
10 of 79
11 of 79
12 of 79
But we notice,..
Which means,…
13 of 79
In order to understand the male and female biological components and how they are
connected to artificial intelligence (AI) we need to look at the basic chemical theory of
biological molecules that describes testosterone and estrogen.
15 of 79
16 of 79
17 of 79
18 of 79
19 of 79
20 of 79
21 of 79
22 of 79
23 of 79
24 of 79
I had to develop a way to mathematically represent amino acids. I did it by dividing the amino
group by the acid group, then multiplying that ratio by the R group for each of the 20 standard
amino acids. Two amino acids—serine and glutamine—had near 100% correspondence with
elements, and those elements were carbon and silicon, which is perfect because carbon is at
the heart of artificial intelligence and silicon is at the heart of AI, and we want to explore the
connection of the natural (carbon) with the artificial (silicon) through the amino acids (building
blocks of natural life).
25 of 79
26 of 79
27 of 79
28 of 79
29 of 79
30 of 79
31 of 79
32 of 79
33 of 79
34 of 79
35 of 79
36 of 79
37 of 79
38 of 79
39 of 79
40 of 79
41 of 79
42 of 79
Wikipedia writes,…
It further writes,…
Oleic acid is a fatty acid that occurs naturally in various animal and
vegetable fats and oils. It is an odorless, colorless oil, though commercial
samples may be yellowish. In chemical terms, oleic acid is classified as a
monounsaturated omega-9 fatty acid, abbreviated with a lipid number of
18:1 cis-9. It has the formula CH3(CH2)7CH=CH(CH2)7COOH.[2] The term
"oleic" means related to, or derived from, olive oil which is mostly
composed of oleic acid.
Fatty acids (or their salts) do not often occur as such in biological systems.
Instead fatty acids like oleic acid occur as their esters, commonly
triglycerides, which are the greasy materials in many natural oils. Fatty
acids can be obtained via the process of saponification.
Since olive oil is a healthy, unsaturated oil that has been used by humans
since ancient times in the Middle East, and, since glucose is the primary
sugar in life (circulates in blood, and is the most important source of energy
for cellular respiration) we look at them.
43 of 79
I wrote in my AI Cookbook,…
Electron Volt: A unit of energy equal to the work done on an electron in accelerating it
through a potential of one volt. It is 1.6E10-19 Joules (Google Search Engine)
Volt: Potential energy that will impart on joule of energy per coulomb of charge that
passes through it. (Wikipedia)
Forward Bias: A diode (silicon) must have 0.7 volts across it to turn it on, 0.3 volts
(Germanium). This is called forward voltage. The forward voltage threshold is 0.6 volts.
This is the energy to turn on a diode, or the threshold of life for artificial intelligence. I
call it a bue (basic unit of energy).
A photon has to have a minimum energy of 1.2 electron volts to impart to an electron for it to
turn on the simplest of logic gates; a one on, one off, OR GATE, for there to be an output of one
“bue” (basic unit of energy electronic) , which 9.6E-20 Joules, as I have calculated it.
wavelength = lambda = c/v where c is the speed of light equal to 3E8 m/s
So we see the visible spectrum for one photon of light begins where the energy is 2 bue.
44 of 79
Simplified reaction:
This says the basic energy unit of organic, or biological life, is about 50 times greater
than the basic energy unit of electronic life, or artificial intelligence.
That is 0.6(50)=30 electron volts = basic unit of energy for biological life.
So, we see the visible spectrum for one photon of light begins where the energy of the
photon is 2 “bue” electronic which is 100 “bue” biological and that that photon has a
wavelength of 1.0 micrometers.
I now see we should do the same calculation we did for silicon diodes, for germanium
diodes, which turn on at 0.3 volts. We have,…
46 of 79
#include <stdio.h>
int main (void)
{
int a, b, result=0;
printf("What is a? ");
scanf("%i", &a);
printf("What is b? ");
scanf("%i", &b);
while (b!=0)
{
result=result+a;
b=b-1;
}
printf("result=%i\n", result);
}
a=int(raw_input("What is a? "));
b=int(raw_input("What is b? "));
result=0;
while (b!=0):
result=result+a
b=b-1
print("product= " + str(result));
If we break down the program into the set of instructions for it, we
see how it symbolically demonstrates the human thought process for
doing the same thing. We also show what it does when it computes,
which explains the human thought process as well:
49 of 79
#include <stdio.h>
int main (void)
{
int a, b, result=0;
printf("What is b? ");
scanf("%i", &b);
printf("What is a? ");
scanf("%i", &a);
while (b!=0)
{
result=result+1;
b=b-a;
}
printf("Quotient is %i\n", result);
}
b=int(raw_input("What is b? "));
a=int(raw_input("What is a? "));
result=0;
while (b!=0):
result=result+1;
b=b-a;
print("b divided by a is " + str(result));
51 of 79
There are an infinite numbers of way to write the same program, but there is one way to do it
best, and that is, for example, if we are going to declare three variables a, b, result, we could do
each one on a separate line,…
int result;
int a;
int b;
But, that would increase the length of the program by three line instead of one,…
int result, a, b;
And, if we do the latter, we can find all the variables for the program in one line making it easier
to analyze. If we use the criteria for above, … with the criteria, for example, a curly bracket
goes on a line to itself, that is, we don't write,…
but rather,…
Then we can compare one program in one language, say in C, to another program in another
language, say python, that does the same thing and say, …
Which takes us to analyzing the structure of a language. We find while one language requires
more lines for the same program, both have a common structure that allows us to learn a third
language easier once having learned the other two.
For instance, we have to declare our variables; it is not sufficient to ask the user for a, and b,
until we make it clear that, for example, the width of the triangle is a and b is its height when we
want to write a program that calculates it area. We could choose w and h instead, it does not
matter, as long as we say what w and h represent.
52 of 79
Only by first looking at simple ideas, can we understand something as deeply complex as what
it is to be a human being. Pythagoras is credited with discovering the formula for the
hypotenuse of a right triangle. I think this formula is as central to mathematics as is Avogadro’s
determination of the mole is to chemistry. The pythagorean theorem allows us to determine the
distance between two points, or the magnitude of a vector; the mole allows us to determine the
mass of an atom of any element or compound, or the number of atoms in any mass of elements
or compounds. Therefore, since Pythagoras thought the most meaningful structure was the
tetractys, then we meet our needs by writing the program that generates it:
y=4;
x=0;
while (x!=4):
x=x+1
y=y-1
print(y*" " + x*"* ");
print(" “);
x=0
while (x!=4):
x=x+1;
print(x*"*");
print(" “);
We see pythagoras was right in thinking the tetractys was the key to
the universe because it can be used to generate Buckminster Fuller’s
octahedron for three dimensional space:
y=4;
x=0;
while (x!=4):
x=x+1
y=y-1
print(y*" " + x*"* ");
u=0;
v=4;
while (v!=0):
v=v-1
u=u+1
print(u*" " + v*"* ");
print(" “);
54 of 79
Lines In C
———————- = Synergy of Python = 15/7 = 2.41
Lines in Python
print a statement
looped array.
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
}
#include <stdio.h>
int main (void)
{
float a1, a2;
printf("Give me a1: ");
scanf("%f", &a1);
printf("Give me a2: ");
scanf("%f", &a2);
printf("a1+a2=%f\n", a1+a2);
}
#include<stdio.h>
int main (void)
{
int i, x=0;
printf("Give me an integer less than or equal to 20: ");
scanf("%d", &i);
while (x!=i)
{
x=x+1;
printf("%d\n", x);
}
}
57 of 79
#include <stdio.h>
int main (void)
{
int a, b, result=0;
printf("What is a? ");
scanf("%i", &a);
printf("What is b? ");
scanf("%i", &b);
while (b!=0)
{
result=result+a;
b=b-1;
}
printf("result=%i\n", result);
}
#include <stdio.h>
#include <math.h>
int main(void)
{
int n;
do
{
printf("How many numbers do you want averaged? ");
scanf("%d", &n);
}
while (n<=0);
float num[n], sum=0.0, average;
for (int i=1; i<=n; i++)
{
printf("%d enter a number: ", i);
scanf("%f", &num[n]);
sum+=num[n];
average=sum/n;
}
printf("average of your numbers is: %.2f\n", average);
}
59 of 79
60 of 79
#include <stdio.h>
int main(void)
{
printf("\n");
printf("\n");
printf("\n");
printf("5 lines, prints statement\n");
{
//#include <stdio.h>//
//int main(void)//
// { //
printf("hello, world\n");
// } //
printf("\n");
printf("\n");
printf("\n");
printf("10 lines, prompt and return, adds two numbers\n");
//#include <stdio.h>//
//int main(void)//
// { //
float a1, a2;
printf("Give me a1: ");
scanf("%f", &a1);
printf("Give me a2: ");
scanf("%f", &a2);
printf("a1+a2=%f\n", a1+a2);
// } //
printf("\n");
printf("\n");
printf("\n");
printf("12 lines, loop of a single variable, counts to a
number\n");
//#include <stdio.h>//
//int main(void)//
{
int i, x=0;
printf("Give me an integer less than or equal to 20: ");
scanf("%d", &i);
while (x!=i)
{
x=x+1;
printf("%d\n", x);
}
printf("\n");
printf("\n");
printf("\n");
61 of 79
64 of 79
Just as that fundamental unit is a tetrahedron in Synergetics, that is, can generate the other
volumes used in this system of design, as whole number volumes, the crux of synergetics is the
cuboctohedron, also called the vector equilibrium, or truncated cube. Its shadow is the regular
hexagon. This is why it is the crux, because while in three dimensions, the cuboctohedron is the
shape of closest packed spheres, that is, it is generated by packing spheres such that each one
is touching another, the regular hexagon is the closest packing of circles in two dimensions and
is the shadow of the cubeoctahedron. In both cases we mean of circles and spheres of equal
radii.
As synergetic is experiential in its derivations, that is putting together rods with flexible rubber
corners, flex corners, and flexing them in different shapes, we find we can generate the forms in
python with source code experientially, by adjusting the values of our variables,…
Here we generate our tetractys with variables u and v, and remember that to turn it into an
octahedron, we need to reflect it by trading the u value with the x value, the v value with the y
value, and making u=u-1 into its reverse, x=x+1 and v=v+1 into its reverse, y=y-1. Here I have
written the program not as a k!=4 program, but a k!=0. program. We notice in the form below
we need to cut off the tops and bottoms of the octahedron to make them flat, so we adjust the
numbers, accordingly, and we have a regular hexagon,…
65 of 79
The Regular Hexagon, Shadow of Vector Equilibrium, and Closest Packed Spheres
66 of 79
Tetra means four and hedron means face. So, a tetrahedron is a four-
faced solid. Octa means eight. So, an octahedron is an eight-faced
solid. Hexa means six and gon means side. So, a hexagon is a six-sided
polygon. Thus a hexahedron is a six-faced solid, which is a cube. Poly
means many, so a polygon is a many-sided geometry.
The five regular solids are the polyhedrons with faces all made of
equal sided, equal-anguled polygons that are the same. They are the
tetrahedron, the octahedron, the hexahedron, the dodecahedron, and the
icosahedron.
Seen below are the five regular solids with the vector equilibrium,…
67 of 79
u=4;
v=0;
while (u!=0):
u=u-1
v=v+1
print(u*" " + v*"* ");
u=4;
v=1;
while (u!=0):
u=u-1
v=v+1
print(u*" " + v*"* “);
Then we add in a reflection of the tetractys about the horizontal axis,…and we have a
pentagon:
68 of 79
u=4;
v=2;
while (u!=0):
u=u-1
v=v+1
print(u*" " + v*"* ");
x=0;
y=6;
while (y!=0):
x=x+1
y=y-1
print(x*" " + y*"* ");
Since the program to do multiplication of two integers has the same number of lines as the
program to do division of a larger integer by a smaller integer that divided evenly, and since
multiplication and division are two of the most fundamental operations upon which a computer is
built, then if we want to compare one language to another, then these programs are perfect to
meet those ends if we use the same idea behind the algorithms in each language. We have,…
In C
#include <stdio.h>
int main (void)
{
int a, b, result=0;
printf("What is a? ");
scanf("%i", &a);
printf("What is b? ");
scanf("%i", &b);
while (b!=0)
{
result=result+a;
b=b-1;
}
printf("result=%i\n", result);
}
In Python
a=int(raw_input("What is a? "));
b=int(raw_input("What is b? "));
result=0;
while (b!=0):
result=result+a
b=b-1
print("product= " + str(result));
We do the following,..
70 of 79
71 of 79
import comp102x.IO;
/**
* multiplies two integers.
*
* @author (Ian Beardsley)
* @version (version 1.0)
*/
public class product
{
// instance variables - replace the example below with your own
/**
* Constructor for objects of class multiplication
*/
public product()
{
// initialise instance variables
} //12//
IO.outputln("result = " + result); //13//
} //14//
} //15//
We see it is a 15 line program like it was in C, therefore java has the same complexity
rating as C. We have,…
72 of 79
Complexity C = 1
Complexity Java = 1
Complexity Python =0.6
Let’s apply our theory to the next operation up from multiplication and division — The
Factorial,…
73 of 79
#include <stdio.h>
int main(void)
{
int i=1, fact=1, N;
printf("Find the factorial of what integer? ");
scanf("%i", &N);
while (i!=N)
{
i=i+1;
fact=fact*i;
}
printf("factorial=%i\n", fact);
}
i=1; fact=1;
N=int(raw_input("Find the factorial of what number: "));
while (i!=N):
i=i+1
fact=fact*i
print("factorial=" + str(fact));
74 of 79
75 of 79
76 of 79
We look at how the syntax varies, but the structure remains the same from language to
language.
In C we specify a library that has the object code that our source code will draw upon,…
#include <stdio.h>
int main(void)
In python there is no need for specifying a library, or indicating where the program begins.
int i, n, result;
float i, n;
char name[15];
Or in python,…
i=1; fact=1;
Next, in C, we prompt the user and get input to give to the computer. To do this we use prompt
with a printf() function, then tell the computer to wait for input from the user with a scanf()
function. Once that is inputed, it is stored in the computer’s memory for later use. In python
declaring the variable, specifying its type, prompting the user, and telling the computer to wait
for input are all done in one fell swoop. That is why the complexity rating of python is so low. It is
done like this in C,…
while (i!=0)
{
result=result+1;
i=i-1;
}
printf(“Your result is %i”, result);
77 of 79
while (i!=0):
result=result+1
i=i-1
print(“Your result is” + str(result));
making use of indentation, thus eliminating the need for a open curly bracket, and, as such
saving a line of code.
78 of 79
Let’s look at the way we do things, and what we are thinking when we do them. To begin, let’s
say we want to know how many scoops of rice are in a bag. We begin by filling by,…
bag=3;
scoop = 0; //This is where we begin///
If the bag is not empty the while condition is not met, so we go back and add another scoop,
then add one again to scoop, and subtract another scoop from bag. Let’s say the bag has three
scoops of rice. In this case, the bag is not empty, so the while condition is not met, and we put
another scoop in the cup and subtract another one from the bag. The while condition is now
met, so we can exit the loop and go to the next step, which is print bag has x scoops (%i) and x
is filled with the answer scoop, which was the amount tallied in scoop=scoop+1, in this case
three.
#include <stdio.h>
int main(void)
{
int bag=3, scoop=0;
while (bag!=0)
{
scoop=scoop+1;
bag=bag-1;
}
printf("\n");
printf("Bag has %i scoops\n", scoop);
printf("\n");
}
jharvard@appliance (~/Dropbox):
79 of 79
The Author