As of May 4 2007 the scripts will autodetect your timezone settings. Nothing here has to be changed, but there are a few things

## Saturday, December 31, 2011

### Happy New Year

nilo
( I'll save the 'looking back' post for next year. )

.
|
\   *  ./
.  * * * .
-=*  POP! *=-
.  .* * *  .
/    *  .\
|
.
_   _
( ) ( )
| |_| |   _ _  _ _    _ _    _   _
|  _  | /'_ )( '_\ ( '_\ ( ) ( )
| | | |( (_| || (_) )| (_) )| (_) |
(_) (_)\__,_)| ,__/'| ,__/'\__, |
| |    | |    ( )_| |
(_)    (_)    \___/'
_   _                          _     _
( ) ( )                        ( )   ( )
| \| |   __   _   _   _       \\_/'/'__     _ _  _ __
| ,  | /'__\( ) ( ) ( )        \ /'/'__\ /'_ )( '__)
| |\ |(  ___/| \_/ \_/ |         | |(  ___/( (_| || |
(_) (_)\____)\___x___/'         (_)\____)\__,_)(_)
.
|
\   *  ./
.  * * * .
-=*  POP! *=-
.  .* * *  .
/    *  .\
|


### More Alan Turing

( Although I have read more Fearless Symmetry haven't done a new summary yet. )

Anyway, I have selected two Alan Turing videos. First a clip from Nottingham Trent University in the series FavScientist.

Then the great Derek Jacobi as Turing in a clip from the docu drama Breaking the Code.

## Tuesday, December 27, 2011

### What is the origin of mathematics ?

If radio astronomers would discover a signal containing a repeating sequence of prime numbers then they would claim to have found extra-terrestrial intelligent life. Why? Because they consider mathematics as universal throughout the entire universe to which only intelligent life forms have access.

Mathematics is universal. That basically means that mathematics is discovered and not created. We use, for example, $\pi$ as the ratio between circumference and diameter of a circle, that ratio is the same everywhere in the universe. Not the symbol $pi$, the decimal number system and so forth.

We take the existence of mathematics for granted, we don't question when and how it was created. Where does that vast body of mathematics come from? Was it created with the Big Bang? If so, than the ( mathematical ) models of physicists that explain their Big Bang theory look naively simple.

It's rather vague to discuss if there was mathematics before the Big Bang. But -if- there was a point from which everything was created than that creation must have included -all- of mathematics. If we don't accept that than we are saying that we are the most intelligent life form in the universe, because mathematics is created by us and not discovered by us.

What -is- the origin of mathematics?

## Monday, December 26, 2011

### Peter Neumann speaks about Galois.

Found this video more or less by accident on YouTube.

## Saturday, December 24, 2011

### Merry Christmas !

*★Merry★* 。 • ˚ ˚ ˛ ˚ ˛ •
•。★Christmas★ 。* 。
° 。 ° ˛˚˛ * _Π_____*。*˚
˚ ˛ •˛•˚ */______/~＼。˚ ˚ ˛
*° •˛• ☃｜ 田田 ｜門｜ ☃˚╰☆╮
...To ALL readers :) ♥♥♥


### Calculating Galois Groups in Mathematica

If you are ( like me ):
- ( relatively ) new to Galois Theory
- looking for software to support your study of Galois Theory
- prefer software written in Mathematica because you know your way around in it,
then you should continue reading this post.

This year I became quite a fan of the sites of StackExchange. It is a priceless source of readily available know-how. I did not know where to begin looking for Galois Theory Software ( although I knew it existed ) so I posted a question in Mathematics StackExchange here: http://math.stackexchange.com/questions/93689/software-for-galois-theory As you can see I got answers fairly quick. It seemed that Sage, Magma have built-in support for Galois Theory. Both Mathematica and GAP have add-on package solutions. Needless to say these solutions will differ in capabilities, speed and so forth. But I wanted to focus on studying Galois Theorym and not wander off in software land. I accepted the Mathematica answer and pursued that route.

The package did not work!

Written more than a decade ( make that a century or more in software time ) ago or FIVE major releases of Mathematica ago. It got terminally deprecated. Function names used in the package were used in later releases of Mathematica with other, new functions. Other used functions got deprecated and were finally terminated. Software written with an older release can only be opened through the compatibility manager in Mathematica which is quite good at fixing issues. Not this time, which I ascribe to the sheer age of the package. In my confusion I posted the following question in Stack Overflow : http://stackoverflow.com/questions/8624000/how-to-handle-tag-arrow-is-protected-message-in-mathematica

With some help I was able to correct the issues. I don't know how or where to post it because the download came from here: http://library.wolfram.com/infocenter/Articles/2872/

So if you don't want to go the same issues just follow the posts above. I am of course willing to share my version 8 compatible version of the package.

### Fearless Symmetry 6/23: Equations and varieties

I read the sixth chapter of Fearless Symmetry.

Part 1: Algebraic Preliminaries

Chapter 6: Equations and varieties

#### Logic of Equality

An equation is a statement, or assertion, that one thing is identical to another. In mathematics we replace is by = and use symbols that stand for the terms.

#### History of equations

Long before algebra as we know it, ancient peoples were working with equations.
A triangle whose three sides have lengths 3, 4, and 5 is a right triangle which is an example of a Diophantic equation because the unknowns are restricted to integers. Around the late 1500s Descartes added the connection between algebra and geometry now known as analytic geometry. Descartes, as a philosopher believed that the physical universe was governed entirely by the laws of geometry. Newton ( and Leibniz ) discovered that this wasn't true, they had to invent calculus to solve their scientific problems mathematically.

#### Z-Equations

A rational number is any number that can be expressed as the ratio of two integers. Real numbers are rational iff it is a terminating decimal or a repeating decimal. The set of all rational numbers is usually denoted as Q. We will deal mostly with equations where all the constants are integers. Or equations "defined over the integers". A Z-Equation is an equality of polynomials with integer coefficients. One of the main problems in number theory is finding and understanding all solutions of Z-equations.

#### Varieties

Fix the attention on a particular Z-equation. Write S(Z) for the set of all integral solutions of that equation, S(Q) for the set of all rational solutions of it, and so on. We call S an "algebraic variety". The variety S defined by a Z-equation ( or a system of Z-equations ) is the function that assigns to any number system the set of solutions S(A) of the equation or system of the equations.

For example define the Variety S as x^2 + Y^2 = 1
Then
S(Z) = {{1,0),(0,1),(-1,0),(0,-1)}.
S(Q) = {t in Q | 1-t^2 / 1+t^2, 2t/1+t^2}.

We can reformulate Fermat's Last Theorem using varieties as follows.
For any positive integer n, let V_n be the variety defined by x^n + y_n = z^n. Then if n > 2, V_n(Z) contains only solutions where one or more of the variables is 0.

#### Systems of equations

The system
x^2+y^2=1
x>0
is valid and has solutions, but it does NOT define an algebraic variety because inequalities are not defined in C nor in any of the finite fields.

Take the system
x^2+y^2+z^2=w
w^4=1
x+y=z
then S(R) is the ellipse x^2+y^2+x y = 1/2.

#### Finding roots of polynomials

The easiest general class of varieties to look at would be those defined by a single Z-equation in a single variable, for instance, x^3 + x - 2 = 0. The study of this type of variety is dominated by the concept of the Galois group. ( More in 8 and 13 ). If f(x) is a polynomial the roots of f(x) are the numbers c such that f(c)=0.

#### Are There General Methods for Finding Solutions to Systems of Polynomial Equations?

On a purely number-theoretical level, leaving philosophy and logic behind, we also have the famous theorem of Abel and Ruffini: Unlike quadratic polynomials, for which we can use the quadratic formula, for polynomials f (x) of degree 5 or greater, there is no formula involving just addition, subtraction, multiplication, division, and nth roots (n = 2, 3, 4, . . .) that can solve f (x) = 0 in general.

#### Deeper understanding is desirable

The amazing discovery of Galois is that there is more structure to S(A). As we shall see, S(A) is not just a set; it is the basis for defining a representation of a certain group, called the Galois group. We will look at another series of very interesting and very important, though not so very simple, Z-varieties: elliptic curves. These two kinds of varieties will give us some of our main examples to help us understand Galois groups and their representations.

To be continued with 7. Quadratic reciprocity

## Sunday, December 18, 2011

### Fearless Symmetry 5/23: Complex Numbers

I read the fifth chapter of Fearless Symmetry.

Part 1: Algebraic Preliminaries

Chapter 5: Complex Numbers

Well, I think it is safe to assume that readers of this blog know the complex numbers. This chapter is in fact about a subset of the Complex Numbers called the Algebraic Numbers. In FS they use $\mathbf{Q}^{Alg}$ as notation, whereas I have seen mostly the notation $A$ for the Algebraic Numbers.

Every algebraic number can be expressed as the root of of a polynomial equation with integer coefficients. So $\pi$ is not a member of $\mathbf{Q}^{Alg}$, but $\sqrt{2}$ is because $\sqrt{2}$ is a solution of $x^2 - 2 = 0$.

 Visualisation of the (countable) field of algebraic numbers in the complex plane. ( From Wikipedia )
To be continued with 6. Equations and varieties

## Friday, December 16, 2011

### Thinking about mathematics

Mathematics is the study of quantity, structure, space and change. Mathematicians seek out patterns and formulate new conjectures. Conjectures are either proven by a formal mathematical proof or falsified by some counter-example.

Wikipedia on the definition of mathematics

Programmers developed a language which enables them to communicate effectively and at a high level about software and their profession: creating software. It is a small language but very powerful, it is the language of design. - Mathematics, as a language, enables scientists ( astronomers, biologists, chemists, ... ) to talk and think about the patterns in the universe.

Take for example symmetry. Everybody, children included, has some notion of symmetry, i.e. reflection symmetry. When we are confronted with the art of Escher we realize that there is more to symmetry.

 Circle Limit II 1959 woodcut in red and black, printed from 2 blocks

Symmetry is real, it is a physical phenomenon we can observe from the structure of atoms to the spirals of galaxies. Symmetry is more than a property of space it is what defines the structure of everything around us.

But what is quantity, and how we describe it? Here we enter the realm of numbers and number theory. Although, I am seriously fascinated by ( prime ) numbers, we cannot -see- them anywhere in nature. They are not real and seem inventions by humans. If we ever pick-up a signal from outer space that somehow involves prime numbers that would mean that that signal is created by extraterrestrial life.

When you study group theory you will find that there is a deep connection between groups ( i.e. symmetries ) and... prime numbers! Prime numbers are thus part of the signature of the Creator no matter what image you have of that concept.

### Fearless Symmetry 4/24: Modular Arithmetic

I read the fourth chapter of Fearless Symmetry.

Part 1: Algebraic Preliminaries

Chapter 4: Modular Arithmetic

Chapter 4 is all about modular arithmetic.

Considering the goal of the book somewhere fields have to be introduced and in this chapter we find the first definition of a field.

Definition: A field is a number system where we can divide by anything nonzero.

Anything more precise would scare off the laymen casual reader for who the book is intended. I kind of like the definition myself. '... where you can divide anything by nonzero'.

Modular arithmetic is introduced as clock arithmetic of course with examples like: "Today is Tue. What day is it in 25 days?" or "The analog clock shows 8. What time will it show in 33 hours?"

Also, the extremely important concept of an equivalence relation is defined. There is much more about modular arithmetic in the book, of course.

To be continued with 5. Complex Numbers

## Thursday, December 15, 2011

### Stirling numbers of the first kind.

Definition. S1[n,k] (Stirling number of the first kind) is the number of permutations of length n containing k cycles, multiplied by the sign of these permutations.

Example: Permutation Cycles 123 (1)(2)(3) 132 (1)(23) 213 (12)(3) 231 (123) 312 (132) 321 (13)(2) Thus: S1[3,1]=2 S1[3,2]=-3 S1[3,3]=1
Stirling Numbers of the first kind are implemented in Mathematica as StirlingS1.

## Wednesday, December 14, 2011

### Higgs boson and the Euro

Yesterday CERN announced in a press release that 'they almost found the Higgs boson particle'. To me that sounds like a programmer telling me that his code is almost finished. 'It's 99% done'. ( The worst thing I ever heard was 'I'll finish the design when I am done coding.'. ) Anyway, they must get really nervous at CERN for budget cuts in these terrible economic times. - People at CERN rather don't communicate with common people. Unfortunately they depend upon our tax money to fund their expensive toy, the LHC. That's why they are always close to finding something, or they -think- that something exceeded the speed of light. As long as we pay their toy while everywhere else people are bleeding.

## Tuesday, December 13, 2011

### Fearless Symmetry 3/23: Permutations

I read the third chapter of Fearless Symmetry.

Part 1: Algebraic Preliminaries

Chapter 3: Permutations

In chapter 3 the concept of a permutation is explained and how they form groups.

Definition: A permutation is a one-to-one map from a set to itself.

Example 1:
Given the set {1,2} the possible one-to-one maps ( permutations ) are:
1->1, 2->2 and
1->2, 2->1.

Example 2:
For sets of three elements there are 6 = 3! possible permutations.

If we put all the permutations of a set in a set by itself and add the composition of permutations as the operation then this set becomes a group. Permutation groups are among the most important objects in group theory because every finite group is a subgroup of some permutation group.

There are two possible ways of notation when it comes to permutations. Let's consider the set {1,2,3,4} which has 24 possible permutations.

The permutation 1->1, 2->2, 3->4 and 4->3 can be written as [1 2 4 3] and also as (1)(2)(3 4) or short (3 4) this is the so called cycle notation. Thus (1 2 3) and [2 3 1] represent the same permutation. Clearly the cycle notation is more efficient, especially when considering permutations of large sets.

The composition of permutations means permuting one after the other. Unfortunately in some books it is done from left to right, in others from right to left.

Exercise 1:
Show that (ab)(cde)*(ae)(bc)(d)=(ac)(bde).

( I would solve it as follows: )
Right hand side: A B C D E _ D _ E B Apply (bde) C D A E B Apply (ac) Left hand side: A B C D E _ _ _ D _ Apply (d) _ C B D _ Apply (bc) E C B D A Apply (ae) E C B D A C D _ E _ Apply (cde) C D A E B Apply (ab) And it shows that LHS = RHS

Sets of permution form a group under composition because:
- composition leads to a new permutation ( closure )
- the neutral element is the do-nothing permutation, i.e. (1)(2)(3).
- every permutation has an inverse because it can be permuted back to the original positions.
- composition of permutations is associative.

Note that the composition of permutations is NOT ( always ) commutative.

To be continued with 4. Modular Arithmetic

### M381 'Challenge Exercise' - Revisited

Sorry, Paddy and Jobidaker for the late reply. ( Auto-accepting comments has its drawbacks too. )

My solution for the 1/2, 1/3, 1/5 and 1/7 case is the following. Follow the pattern for the solution to the general case. Click to enlarge pic.

Please let me know if you think a smaller number qualifies.

## Sunday, December 11, 2011

### Fearless Symmetry 2/23: Groups

I read the second chapter of Fearless Symmetry.

Part 1: Algebraic Preliminaries

Chapter 2: Groups

Definition: A group G is a set with a composition defined on pairs of elements, as long as three axioms hold true:
1. For any three elements x,y,z in G: x*(y*z) = x*(y*z)
2. G contains an element e such that for all x in G: x*e = e*x = x.
3. For any element x in G, there is an element y in G such that x*y=e.

Example 1:
The group of rotations of the sphere in R3: SO(3) or the Special Orthogonal Group in 3 dimensions. -The set G is the collection of all rotational symmetries of the sphere, i.e. if we rotate the sphere by any angle, the sphere doesn't noticeably change. The group property basically means that if we rotate the sphere over any angle A, after this over an angle B, it is the same if we would have rotated it in one go, but over some different angle. Also any rotation has an inverse: rotating it over the opposite angle. This makes the rotations a group. SO(3) is in fact a Lie group because these rotations can be done arbitrary small which is not the case when considering the symmetry group of for example a cube. Lie groups capture the concept of "continuous symmetries".

For me personally, this is the time to review chapters 1,2 and 3 of Naive Lie Theory by John Stillwell, Springer 2008. There you will find that the ( 4 dimensional ) quaternions are intimately related to the group SO(3) and that the quaternions can be expressed as 'complex 2-dimensional rotations' or complex 2 by 2 matrices. - This explains why quaternions are frequently used in 3D-(game)-programming.

To be continued with 3. Permutations

### Fearless Symmetries - Reviews

In the eye of the general public the protypical math student suffers a range of personality disorders, i.e. autism, Asperger of course. When they suffer from a Narcissistic Personality Disorder as well, they merely look dumb and arrogant, the complete opposite of what they are trying to achieve.
Perhaps the most accessible introduction for a "very naive layperson" is Ash and Gross's Fearless Symmetry.

by Anonymous on Mathematics StackExchange

Anyway, Ash, one of the authors of Fearless Symmetry listed several reviews of the book on his page here.

### Mathemusician puts Pi to music.

I -love- creative people.

## Saturday, December 10, 2011

### Video lectures on Theory Of Automata, Formal Languages and Computation

NPTEL released a new series of video lectures featuring Prof.Kamala Krithivasan from the Department of Computer Science and Engineering IIT in Madras on  the Theory of Automata, Formal Languages and Computation. The first lecture in the series is called GRAMMARS AND NATURAL LANGUAGE PROCESSING.

### Fearless Symmetry 1/23: Representations

I read the first chapter of Fearless Symmetry. See: Reading ( conflicts time management ) for the history on this topic.

Part 1: Algebraic Preliminaries

Chapter 1: Representations

The goal of the book is 'Mod p linear representations of Galois groups' and how these representations help to clarify the general problem of solving systems of polynomial equations with integer coefficients.

It is very important to know that a mathematical definition can redefine a commonly word used elsewhere. ( A simple group is not 'simple' but complex. A tree is a graph, a 'tree' in the forest is not. ) Sometimes an object is defined by listing its properties and following that a proof is given of the existence of such an object.

Definition: A set is a collection of things which are the elements of the set.

Definition: A function f: A-> B from a set A to a set B is a rule that assigns to each element in A an element of B.

Definition: A morphism is a function from A to B that "captures at least part of the essential nature" of the set A in its image in B. ( Clearly "captures at least part of the essential nature" needs to be refined later. )

Definition: A representation is a morphism from a source object to a standard target object.

Example 1: Take A,B and the fact that B represents A. A may be a citizen, B her state rep and X the legal fact that B represents A by voting in the legislature on her behalf. A may be a(n abstract) group, B a group of matrices, and X a morphism from A to B. The ultimate in abstraction is representing A,B as dots and X as an arrow from A to B.

Example 2: In the context of counting, given any two finite sets A and B, a morphism is a one-to-one correspondence from A to B. A representation in this case is a morphism from a given finite set to one of the sets {1}, {1,2}, {1,2,3} and so on. So a flock of three sheep has the set {1,2,3} as its target.
To be continued with 2. Groups.

## Friday, December 9, 2011

### Solving the Königsberg Bridge Problem with Mathematica

One of the most famous problems in the history of mathematics is the Königsberg Bridge Problem because it clearly marks the beginning of Graph Theory.

"... In addition to that branch of geometry which is concerned with magnitudes, and which has always received the greatest attention, there is another branch, previously almost unknown, which Leibniz first mentioned, calling it the geometry of position. ..."
Soluti problematis ad geometriam situs pertinentis, Euler 1736

The Königsberg bridge problem asks if the seven bridges of the city of Konigsberg (*) over the river Preger can all be traversed in a single trip without doubling back, with the additional requirement that the trip ends in the same place it began. Euler proved in 1736 that there is no such traversal. (*) Königsberg = Kaliningrad in the Russian exclave between Poland and Lithuania.

Using Graph Theory the problem is equivalent to asking if the multigraph on four nodes and seven edges (see figure) has an Eulerian cycle. Using Mathematica we would model each bridge as an edge and the parts of the city as a vertex. There are different ways to create a graph in Mathematica, but this problem suits the method of creating a graph from an adjacency matrix. Since EulerianQ returns false we know that Mathematica confirms Euler's original answer.

## Thursday, December 8, 2011

### Combinatorica

The following function in the Mathematica Combinatorica package ShowGraphArray[Partition[FiniteGraphs, 4]] produces the following graphic.

I found it in the book 'Computational Discrete Mathematics, Combinatorics and Graph Theory with Mathematica, by Sriram Pemmaraju and Steven Skiena, Cambridge 2003.' It's not the typical Proposition / Proof mathematics book but it does give you access to about 450 -practical- freely available ( if you have Mathematica ) tools to extend your problem solving toolkit.

## Tuesday, December 6, 2011

### Reading ( conflicts time management )

When I was in high school I ( and others of my generation ) considered reading a waste of time. Teachers took every effort to convince us of the opposite.

There is only one way you can effectively change yourself and that is through reading.

Some of the best memories I have are somehow related to reading. Good times! I have read quite a few time management books. These books are primarily written for people who want to do better in life, i.e. change themselves into more productive people. In none of these books I have found the advice: "Read more". Strange. Anyway, I managed to undo the habit of reading. And that is bad.

In "The New Student Hat" Hubbard explains why people don't read, he talks about the strange sensations people experience when they sit down and attempt to read a book.

Amazing reactions occur when conscious effort is made to do this. Dullness, perception trouble, fogginess, sleep and even pains, emotions and convulsions can occur when one knowingly sets out to BE THERE AND COMFORTABLY PERCEIVE with the various parts of a subject.
These reactions discharge and vanish as one perseveres ( continues ) and at last, sometimes soon, sometimes after a long while, once can be there and perceive the component.

When I sit down with a book ( or device ) I get these sensations which only go away when I CAN OCCUPY MY MIND ON A (MATH-)PROBLEM. I know exactly what Hubbard means, I have to -simply sit there and read-, confront it.

Many years ago Goedel, Escher, Bach helped me to through a reading-barrier. This time I chose "Fearless Symmetry, Exposing the Hidden Patterns of Numbers, by Avner Ash and Robert Gross published by Princeton 2006.

I'll keep you posted about my struggle to become a reader again.

## Saturday, November 26, 2011

### M381 'Challenge Exercise'

Each Open University M381 Number Theory booklet has a number of 'challenge exercises'. This is one of them.

Half of the number we are looking for is a square, a third of the number is a cubic and lastly a fifth is a fifth power. Find a number satisfying these properties.

Solution on request.

### Britain´s greatest code breaker / Alan Turing

Alan Turing ( represents the team that ) decisively changed the course of World War II. He is among the greatest scientists of the 20th century, if not all times. Alan Turing is the inventor of computers, programming and artificial intelligence. All the computers in operation today, including the billions of smartphones are in fact Turing Machines, the computer Turing invented conceptuallly. His thoughts were revolutionary. Computers in his days, were people. People, computing.

The British of today are working hard on clearing their conscience on how they treated Alan Turing. In 2009 Gordon Brown said that "he is sorry for the "appalling" way World War II code-breaker Alan Turing was treated for being gay." And now there is this documentary called "Britain's greatest codebreaker" based on the biography of Turing and sessions Turing had with a psychiatrist in Manchester, Franz Greenbaum.

In my opinion Alan Turing could only have flourished in Britain because of his eccentricity. What would have happened with Turing if he had to work at a patent-office like Einstein? Asa Briggs, one of the codebreakers at Bletchley Park mentioned that Turing often came to work with his pajamas under his jacket. That described the culture in that group, I suppose. One of the most important things in Turings private life was the loss of his best friend, the love of his. He never got over it although in Bletchley Park he became friends with a woman, the only woman codebreaker on the team. He even proposed to marry her but Turing called it off, because he wanted to live an honest life. That was his first mistake...

His second mistake was going to the police and accusing a male prostitute of stealing 50 pounds. The police did not care about the 50 pound robbery at all, they could book a professor for gross indecency. Turing now lived in a world where, it seems, nothing out of the ordinary was accepted. Society really wanted him. His sentence was that he could choose prison or enforced body change. He chose the body change, which was an experimental chemical castration. His security privileges were removed as well, meaning he could not continue to work for the UK Government Communications Headquarters. The drug, a synthetic version of female hormones, had a catastrophic effect on his body.

Alan Turing sadly ended his life in 1954.

- Alan Turing documentary

## Thursday, November 24, 2011

### Alan Turing Documentary / Drama

Alan Turing is among the mathematicians who are truly an inspiration to me and I am sure to many, many others. Find the latest documentary on Alan Turing here: Turing Documentary . A review follows soon, when I watched the movie.

Enjoy!

If you don't have access to Channel 4 ( like me ), then download ( and seed! ) the torrent.

## Sunday, November 20, 2011

### Compiler development 2/2

OK, what is the status It's in the technical design phase. Graphica is a 3D scene graph language, ( the first version of ) the Graphica compiler generates Mathematica source code that will be handled by Mathematica ( another target to compile to could be Java/jReality for example ). I am at the point of studying the theory behind compilers and the selection of tools, candidates I have pre-selected are:
- ANTLR,
- javaCC,
- jparsec and
- an all handcrafted option.
More options may pop-up while studying though. I selected four books to study:
- (1) Modern compiler implementation in Java, A.Appel, CUP 2004
- (2) Programming Language Processors in Java, D.Watt, D.Brown, Prentice Hall 2000
- (3) ANT LR Reference, Terence Parr, Pragmatic Bookshelf 2007
- (4) Compilers, PT&T, Aho, et al, Pearson 2007
Title (4) is aka the Dragon book and supposedly is the best book on the subject, I'll use that as a glossary. Title (1) supports a javaCC approach, and develops MiniJava, a subset of Java, (2) builds a compiler and interpreter for a language called Triangle ( with Java ). I already downloaded the source, created a project for it in NetBeans and tested a few compiles and runs of a Triangle program which is a Pascal type of language. Several bugs have been reported over the years which I have collected and should fix. Title (3) is clearly pro ANTLR. And (4) is the authoritative reference. Some of the books may seem old but I used a list from a 2010 university syllabus.

I'll have to solve one other issue on the Mathematica side of the project, and that is how to remotely create a Notebook using a kernel I am connected to in Java. Once that is solved I can continue programming, using a stub compiler if necessary.

The purpose of Graphica is to stimulate my personal development and knowledge of computer science, so any pro-s and con-s that I might mention are clearly mine and have to be seen in that light only.

To be continued

## Saturday, November 19, 2011

### Compiler development 1/2

Although programming domain-specific languages ( with tools like ANTLR ) is part of the standard toolkit (*) of an  application programmer, programming compilers is still considered to be a different ballgame. ( Is it? ) I worked for a company once that developed a 4GL. A small group of experts worked on the kernel ( compilers and run-time ). They enjoyed an almost cult-like status, they were literally seen as guru's. The skill to write a compiler was considered God-like. Java was only just released and tools like ANTLR were years ahead of us. - The cruelty is, it always is, that developing compilers is not difficult, it is simple compared to developing satisfactory end-user applications.

More next post, in which I will explain how you can learn to write your own compiler fast and easy.

(*) If you expect a programmer to be carrying an actual physical "kit" on his gadget belt you are wrong. "Standard Toolkit" is programmers jargon for a minimal set of technical skills expected of any programmer. Every programmer knows how to query a database with SQL, creating and populating tables to optimize performance is however specialized knowledge expected only of a database administrator or DBA ( although many programmers have DBA skills ).

## Friday, November 18, 2011

### Mathematics of Mariner 9

In 1971 (!), Mariner 9 transmitted pictures of the planet Mars over a distance of 135 million km, with a transmitter that had a power of only 20 watts (!). With such low power and taking into to account the radio noise of space it is remarkable that data was received at all. Yet, the pictures were near-perfect. How is this possible?

The ﬁrst pictures of Mars were taken at a resolution of 700 × 832 pixels. The images used 64 different shades of grey. The pictures were transmitted back to Earth by sending one pixel at a time, so we can think of a message as a single number between 0 and 63. The channel could send the two binary digits 0  and 1. Encoding each pixel as a string of 6 bits would not have worked well. A survey gave a probability of 0.05 that a bit would be ﬂipped by the channel, implying that about 26% of the image would be wrong.

It was acceptable for each pixel to be encoded by up to 32 bits, so Mariner sent a volume of more than five times of the original data. But by doing so error-detection and correction techniques could be used so that finally a picture had less than 100 incorrect pixels. Mariner transmitted over 7200 pictures of Mars like this.

Coding Theory is a branch of mathematics that uses Galois fields, polynomials, vector spaces and matrices.

 135,000,000 km far, sent with a 20 watt transmitter

## Tuesday, November 15, 2011

### Study Tip - 4 ( Plan, plan and plan )

It has been a while since my last study tip.

#### Learning style

I am not a type that can sit still for hours to read, think deep mathematics and make an occasional note in my virtual notepad in my memory. Although I would like to be like that it is not going to happen. They say Euler was like that. That's why he had no problem to continue with his mathematics after he became blind. Stephen Hawking also has this ability to do theoretical physics in his mind. In the Netherlands we have a former checkers World Champion, Ton Sijbrands, who can play and win or draw close to 30 games blind. It proves what the human brain is capable of, in principle. - I can't do it though because I have to be active, I must do something, better: create something. Otherwise I can literally doze off. A friend once said that I have a kinematic learning style. Different people have different learning styles. I can't sit in a lecture and listen to a lecturer either. It literally goes in one ear, leaves the other, without any storage or processing in between. I get extremely bored in lectures ( or courses ), days seem ages because I want to go home to -do- something.

#### Check-sheet

Over time I organized my style of studying into a series of to-do items. The first to do is always 'Make a detailed plan.' For example if I plan studying a booklet ( Open University study materials are delivered in booklets which often take two weeks to study, or something between 16 and 32 hours ) I create a check-sheet for it. ( If you have ever done a course in scientology, you know the concept. ) If you study from a check-sheet you won't have those blockages. They really work. The most important thing is that you create a plan that works for you. A plan helps you go through the materials and you know when to do what and no more. That way you won't fall in the 'I never have time-off trap'.

#### Statistic

Maybe you study to make a step on the career ladder, expect to make more money or maybe you simply want to be able to do your current job better. Or you study to get a(nother) job, or you finally want that degree. In any case you have a deep interest in the subject you study. Final study results come in after many years of study. They are hard to measure on a daily basis, even success on a module which usually takes a year is not a good measurement. TMA results? Yes, somewhat. But what if you got that 'good' result by cramming the TMA out in 48 hours of almost continuously cramming? You will have forgotten the materials on the exam. You have to set a study statistic you can measure on a daily basis. I make ( = do ) flash cards with the open source program Anki. For example when I study a definition, of a graph for example. I type in Anki Q: What is a graph. A. A graph G is a tuple [V,E] where V is a set of vertices. etc. Anki makes sure that I will never forget the definition by monitoring my recall on the question in a very efficient manner. But most of all, I am doing something while styding because I am alert and awake as to which questions I have to put in Anki. Naturally I try to formulate the answers in my own words. Anki then provides me a with a range of graphs and statistics about my progress.

#### Feedback

Have you ever made a plan which worked well for onze day but you threw away the next day because all the time unexpected things happen? I often made plans to study on times when I was not physically up to studying. I felt tired, spent too much time in traffic, got hold and so forth. That is very valuable information you can use when you make your next plan! And if you record the time spent on each topic your time-estimates will improve and improve.

That is what I mean by "plan, plan and plan".

Oh, I no longer think in time, my unit of doable work is the Pomodoro. More about pomos another time.

## Monday, November 14, 2011

### Pattern recognition

6666666666666669
9999999999999999
9999999999999999
6699966666999666
6699966666999666
6699966666999666
6699966666999666
6666666666666666

Select all numbers in the quote above with your mouse. Press find: Ctrl+F, type 99. If you are not surprised then you have high pattern recognition skills.

### Dreaming of ( massive parallel ) computing power

Or: Numbers divisible by seventeen (17)

I am looking at properties of decimal numbers consisting of only 1s and 0s. Here is a sample of them which are divisible by 17.

\begin{array}{l}
100000001100000000001000100000100000010010 \\
100000001000001000000100110000000000100010 \\
1000000000010001000000010000000100000100000010010 \\
1000000000010001000001000000100100000001000000010 \\
10000001001000000010000000110000000000100010 \\
10000001001100000000001000100000001000000010
\end{array}

Again, these are just ordinary decimal numbers consisting of only ones and zeros. They are all divisible by seventeen (17). Divided by 17 they are:

\begin{array}{l}
5882353005882352941235300000005882353530 \\
5882353000000058823535300588235294123530 \\
58823529412353000000000588235300000005882353530 \\
58823529412353000000058823535300000000058823530 \\
588235353000000000588235300588235294123530 \\
588235353005882352941235300000000058823530
\end{array}

I really wonder where this track might bring me. Do I ( we ) have control over it, or is there some invisible hand leading us?

I do most of my calculations on computers a geek would frown at today but were dreaming of only five years ago. What is computing power? - Since I am not a gamer I thought that I never needed a high-end PC. Now, I think I need a whole wall of them. Serious. It's kind of crazy, isn't it. More of this madness in future posts, I promise.

## Saturday, November 12, 2011

### Numbers divisible by seven

Sometimes, doing an exercise runs out of control, slurps time and leads to posts like this:

\begin{array}{l}
111111101101010101001001 \\
111111101101001001010101 \\
111111010101101101001001 \\
111111010101001001101101 \\
111111001001101101010101 \\
111111001001010101101101 \\
101101111111010101001001 \\
101101111111001001010101 \\
101101010101111111001001 \\
101101010101001001111111 \\
101101001001111111010101 \\
101101001001010101111111 \\
10101111111101101001001 \\
10101111111001001101101 \\
10101101101111111001001 \\
10101101101001001111111 \\
10101001001111111101101 \\
10101001001101101111111 \\
1001111111101101010101 \\
1001111111010101101101 \\
1001101101111111010101 \\
1001101101010101111111 \\
1001010101111111101101 \\
1001010101101101111111
\end{array}

you might assume they are binary numbers. They might be, but they are just ordinary decimal numbers consisting of only ones and zeros. They are all divisible by seven. For your convenience I'll show them again, divided by seven this time.

\begin{array}{l}
15873014443001443000143 \\
15873014443000143001443 \\
15873001443014443000143 \\
15873001443000143014443 \\
15873000143014443001443 \\
15873000143001443014443 \\
14443015873001443000143 \\
14443015873000143001443 \\
14443001443015873000143 \\
14443001443000143015873 \\
14443000143015873001443 \\
14443000143001443015873 \\
1443015873014443000143 \\
1443015873000143014443 \\
1443014443015873000143 \\
1443014443000143015873 \\
1443000143015873014443 \\
1443000143014443015873 \\
143015873014443001443 \\
143015873001443014443 \\
143014443015873001443 \\
143014443001443015873 \\
143001443015873014443 \\
143001443014443015873
\end{array}

Even mathematics tries to steal your time, sometimes.

### Fabric of the Cosmos

I think I finally 'get it'. That space-time is not just a word, but a fabric. The fabric of the cosmos.

PBS did it again. They created a documentary you'll still be talking about in ten years time. If that sounds strange, think of the documentaries of Jacob Bronowski, Carl Sagan and Marcus du Sautoy.

Anyway, fabric of the cosmos is running now on PBS. Don't miss it.

"The Fabric of the Cosmos," a four-hour series based on the book by renowned physicist and author Brian Greene, takes us to the frontiers of physics to see how scientists are piecing together the most complete picture yet of space, time, and the universe. With each step, audiences will discover that just beneath the surface of our everyday experience lies a world we’d hardly recognize—a startling world far stranger and more wondrous than anyone expected.

## Thursday, November 10, 2011

### 100.000th blog view expected on 11/11/11

This blog has had close to 100,000 page views since August 2008 and it looks like that the 100,000th page will be viewed on 11/11/11. This is a coincidence, of course. But with all the hype surrounding 11/11/11 I thought I should mention it. - Another example of the NumerologyIsNotMathematics principle. ;-)

EDIT:
( Although not 11/11-'11 yet on all parts of the world. )

## Wednesday, November 9, 2011

### [News] - London student protests revisited

Students from all over the UK ( i.e. Scotland ) came to London today to protest.

Why?
- Fees are trebling from GBP 3,000 to GBP 9,000.
- The privatization of education will start.
- Entire faculties will be closed.
- And more.

Maybe the people behind these measures think that people will do anything to obtain a descent education including taking loans to finance university. From the USA we know that this means lifelong enslavement to the bank...

And that's just what they are protesting against at Occupy London ( and in zillions of other cities around the world ). So maybe the two will meet and join forces.

- [News] - London: More student protests

## Tuesday, November 8, 2011

### Graphica at Google Code

Graphica is now a real project. I don't know how many projects get started, I do know a lot of them die unfinished. I can only say that I hope this won't happen to Graphica. I will try to push it forward at a steady pace. It is not that I thought about it yesterday and well, started a project to 'see what happens'.

- I have been thinking about it for years.
- I silently programmed a prototype in Mathematica,
- made an extensive study of Mathematica graphics,
- studied how to develop a language-to-language compiler in Java,
- spec'ed the language,
- selected the Java frameworks, and tools to start with,
- chose a license

so: it's time to start hacking! At last. All I need now is a home for my code to live:

Graphica at Google Code.

### Du Sautoy on CERN's speed of light result

I missed a Marcus du Sautoy ( pronounce: desoto ) documentary on CERN's issues on the speed of light. I watched it yesterday though. Another quality documentary by the BBC. I think there was a one-minute babble by the home expert on everything on Dutch tv. I have heard that the BBC receives hundreds if not thousands of complaints every week, well maybe that's what keeps them sharp.

To the point.

Faster than the speed of light could be made so fast due to the rich catalog of the BBC. A lot of material in this episode came from the catalog, no doubt. The struggles scientists had with light are explained up to the point that Einstein entered the scene and explained it all. Einstein said that the speed of light is the same everywhere and independent of how it is measured so time became variable which is hard to understand but true. Later Einstein said that time is the limit of speed in the universe. Nothing can travel faster than light. Voila $E=mc^2$.

Well, a neutrino traveled faster than light There are 16 types of fundamental particles, three of which are a neutrino. Pauli predicted neutrinos in 1930 but he thought it wouldn't be possible to ever find one. We are crossed by billions of neutrinos every second which is possible because everything, including us, is built up from atoms which are mostly empty. Neutrinos are extremely small and have no charge. But they still have a tiny mass so their speed is limited to the speed of light according to Einstein's laws. The amazing result from CERN is about neutrinos traveling faster than light.

For me, as a non-physicist, I find it unbelievable that it is possible to make such precise measurements. If the neutrinos and light were athletes running the 100m they would have beaten light only by a few millimeters.

Scientists are skeptical because time travel would become possible and it contradicts with previous results in the late 80s when it was measured that light and neutrinos emitted by a supernova reached us at almost the same time. But in favor of CERN is a previous result measured in Chicago which at the time was considered an error.

I lost it when Du Sautoy began about tachyons. Theoretical particles with imaginary or negative mass which could travel faster than light, mathematically of course, but so did anti-matter which was predicted through mathematics. There are also circumstances where an absolute speed limit doesn't make sense like black holes and the first second after the big-bang. And of course Einstein's theory and quantum-mechanics are incompatible.

String theory might have an explanation which satisfies everyone though. In their multi-dimensional bulk we live on a 3D membrane. It could be that the neutrinos left our membrane into the 4th dimension and so appeared faster. I bet a lot of SF fans could have come up with a similar explanation. String theorists are actually paid to talk about the fourth up to the 10th or eleventh dimension.

If you haven't seen the documentary yet, you'll be able to find it somewhere, I did.

## Monday, November 7, 2011

### Graphica preview

I don't think there are much limits, if any, to the graphics you can create with Mathematica, besides your own imagination of course.

My study project involves mathematics, computer science and art. It is called Graphica, it is basically an IDE to develop applications using Mathematica Graphics. For this I have designed a new simplified language to create -and animate- graphics. The most basic application is of course creating graphics. I have included some pics. Of course this is a project 'in progress'. I intend to release it as an open source app. More as the project develops.

The following images are candidates for the standard object library. They are created in Mathematica with SphericalPlot3D and are called 'butterfly' in Graphica.

Various polyhedra which are easy to create in Mathematica by accessing the PolyhedronData database functions.

More examples in one of my facebook albums, if you are interested.

## Friday, November 4, 2011

### Thoughts about number theory (1)

Has it ever happened to you that you skipped a proof because no matter how hard you tried you simply "didn't get it"? - Or worse, that you had to learn an algorithm but the 'why' wasn't given, let alone a proof. - Mathematics may be hard and difficult but at the end of the day you should 'own' the theorems. Where ownership stands for the notion that you could have created the theorem, in principle, yourself. Or look at ownership at this way: browse through a mathematics book that you studied two or three years ago, or even longer. Everything in it looks really simple because slowly over the years, you took ownership of that particular subject of mathematics.

When I am stalled on a particular topic or proof, I simply accept the proposition knowing that somehow my brain is working on it. It is a better alternative than remaining stalled. It is possible though that you are stalled because the author decided to leave out 'a few details'. Some topics in number theory, for example, are simple if you look at it from a group theory perspective. The author then has to decide if his proposed audience has already studied group theory or not. And even then his publisher may decide otherwise because from his perspective the audience should be made as large as possible.

Number Theory may be called the Queen of Mathematics the Queen needs a lot of help from the 'people'. There is analytical, algebraic, combinatorial and computational number theory and I wouldn't be surprised if there are a few more. The theory of prime numbers and group theory are strongly interconnected for example. Numbers are among the first mathematical objects that man studied but is a number an object? Unlike graphs, sets and geometric or topological shapes numbers don't really exist. Even groups exist, not just as sets, but they are part of nature itself in the form of symmetries everywhere. What -is- one? Like the one in 'one apple'? I argue that 'number' is a property like color, and the rest is just physics.

What about 'God invented the integers', 'Number theory is beautiful' and so on? The truth is that man invented a God that supposedly invented the integers. I have been studying number theory for a while now, and I haven't found its beauty yet. Just open problems, a lot of open problems everywhere. - Inspector Columbo would call that loose ends. And for him that is proof of human error. - That these open problems are a challenge is another issue.

## Tuesday, November 1, 2011

### Google Public Data Explorer

Google Public Data Explorer is really a great tool of practice and exploration if you are doing a course in descriptive statistics. It is a sort of Google Maps - plus. Plus data. It does certain things that WolframAlpha does but interactive and with more data. You can even embed data that you created with this tool in your own webpages or reports.

The Google Public Data Explorer makes large datasets easy to explore, visualize and communicate. As the charts and maps animate over time, the changes in the world become easier to understand. You don't have to be a data expert to navigate between different views, make your own comparisons, and share your findings.

Try it yourself here: http://www.google.com/publicdata/home

## Monday, October 31, 2011

### Graphica - Scene Graph Language

Like everyone else, I suppose, I have a need to express my creativity. To facilitate this I am coding a small programming language to create graphical art. Although, for me, Mathematica is -the- language to do that I want to have a language that kids of age 8 to 88 ( TinTin or Donald Duck readers ) could learn. By using it geometric transformations like rotations and translations are learned in a natural way.

The graphic like the one below, including the rotation, is an example what the language could create with a few lines, a Mathematica Kernel is required but will run in the background only.

To be continued.

## Saturday, October 29, 2011

### M381 - Challenge Exercise

In the Open University course Number Theory and Mathematical Logic the additional exercises sections of the workbooks are complemented with several 'challenge exercises'. This is one of them.

Let $n$ be an odd positive integer.
Prove that there are $\tau(n)$ ways of writing $n$ as a sum of consecutive positive integers.
For example, if $n=9$, $\tau(9)=3$ because $9$ has three divisors $1,3,9$ and the three sums are: $9$, $4+5$ and $2+3+4$.

To be continued.

## Thursday, October 27, 2011

### Rene Descartes

In the book 'Problem Solving and Number Theory' I read
The law of quadratic reciprocity was discovered for the ﬁrst time, in a complex form, by L. Euler who published it in his paper entitled “Novae demonstrationes circa divisores numerorum formae $xx + nyy$.

Was there no notation for exponents in the time of the great Euler? I did not know how to formulate a query for Google, so I asked a question at Math/StackExchange.

I found out that Descartes introduced the notation for $x^2$. Descartes is famous for his quote "Cogito ergo sum", "Je pense donc je suis" or in plain English "I think, therefore I am". Descartes was my favourite mathematician in secondary school because he invented analytic geometry, one of the milestones in the development of mathematics. Before Descartes geometry was done strictly in the Euclidean way, by compass and ruler. Thanks to Descartes' quadrant and coordinates, geometric shapes like lines and circles could be respresented by algebraic equations. They become objects to do calculations with.

So far about Descartes.

Also, thanks to kind repliers I discovered the bookset "A History of Mathematical Notations, vols 1 and 2., by Florian Cajori". A real gem if you like the history of mathematics. Because the copyright expired one is allowed to freely download the original version. See the comments below the original question at StackExchange for a link to the full version of the book.

- Question at StackExchange

## Sunday, October 23, 2011

### Social Media for mathematicians

The places 'to be' for mathematicians are -not- Twitter and facebook, although they are both great places to socialize, chit-chat you know what I mean, they basically steal your valuable time.

Mathematicians hang out at:
- http://math.stackexchange.com/
- http://www.reddit.com/r/math
- http://www.stumbleupon.com/to/stumble/topic:247
- http://mathoverflow.net/
- http://mathblogging.org/
- http://arxiv.org/

Thanks to Gaurav Tiwari, read his review at his own site My Digital Notebook

## Saturday, October 22, 2011

### The difference between mathematics and numerology

Numerologist is a four-letter word among mathematicians ( I can imagine ). Is numerology the same as number theory? Not really, the difference between numerology and number theory, as a branch of mathematics, can best be explained using an example.

Both numerologists and mathematicians study identities like $$2^2 + 3^2 + 5^2 + 7^2 + 11^2 + 13^2 + 17^2 = 666.$$ A mathematician would notice that this is the sum of the first seven primes and rewrite the sum as $$\sum_{k=1}^{7} p_k = 666.$$ The right-hand side sum is a number with equal digits, so the mathematician might look at other sums of consecutive primes and verify if these sums have similar patterns. Basically a mathematician is interested in anything that might lead to the formulation of a theorem, a proposition to prove mathematically.

A numerologist would immediately notice that $666$ is the number of "The Beast", the representation of evil in the Christian belief system. Then, a numerologist might consider prime numbers divine, since they are the building blocks of all integers, and might try to formulate some law of good and bad represented in the sum-formula. Numerologists also believe that future events can be predicted so they will be extra alert to that.

I believe that it was until the Middle Ages that there was no real distinction between the profession of numerologist and mathematician. Newton has been called the last Alchemist, perhaps he was the last mathematician / numerologist as well. ( History, I am afraid, is not my strongest point. )

### Solving quadratic congruence equations in Mathematica

This is as yet the last post in the LQR series. If you are only interested in -solving- ( quadratic ) congruence equations then this is the way to do it in Mathematica:

As a general Diophantic equation:
In[1]:= Reduce[x^2==123456+1299709 k,{x,k},Integers] Out[1]= (C[1]\[Element]Integers&&x==427784-1299709 C[1]&&k==140800-855568 C[1]+1299709 C[1]^2)||(C[1]\[Element]Integers&&x==871925-1299709 C[1]&&k==584941-1743850 C[1]+1299709 C[1]^2)

Or slightly more elegant as a pure congruence equation ( thanks to: Mr. Wizard ):
In[2]:= Reduce[x^2 == 123456, x, Modulus -> 1299709] Out[2]= x == 427784 || x == 871925

## Friday, October 21, 2011

### Shanks-Tonelli algorithm for solving quadratic modular equations

M381 unit 6 is about the Law of Quadratic Reciprocity. An application of the LQR is solving quadratic modular equations like: $$x^2 \equiv 499 \ \text{mod(617)}.$$ M381 contains a method that can fast determine if that equation is solvable. It does not contain however a fast algorithm for finding the actual solutions. One such algorithm is the Shanks-Tonelli algorithm and can be found on Planet Math which as often gives a much clearer presentation than the messy Wikipedia-entry.

### Quadratic reciprocity in a finite group.

#### Law of Quadratic Reciprocity

Let $p$ and $q$ be distinct odd primes. Then $$\displaystyle \left({\frac p q}\right) \left({\frac q p}\right) = \left({-1}\right)^{\frac {\left({p-1}\right) \left({q-1}\right)} 4}$$ where $\displaystyle \left({\frac p q}\right)$ and $\displaystyle \left({\frac q p}\right)$ are defined as the Legendre Symbol $\displaystyle \left({\frac{a}{p}}\right) := a^{\frac{(p-1)}{2}} \pmod p$.

Gauss considered his work on the Quadratic Reciprocity Law among his major achievements. I don't 'get that', not now anyway, that's a call for more study on the topic.

Now and then, when I browse through papers, or otherwise, I find an interesting mathematical paper... ( that I can actually read ). Actually, I was browsing through a book called Reciprocity Laws, from Euler to Eisenstein by Franz Lemmermeyer, it contains more than 100 proofs of the Quadratic Reciprocity Law. I hoped to find a proof I could appreciate by it's beauty. Although most proofs are based on Gauss's Lemma ( as the proof in M381 ) but there are proofs in other realms of mathematics like Group Theory. Group Theory -as we know it today- did not exist in Gauss's time. That's why I am going to spend some time studying the following paper 'Quadratic reciprocity in a finite group.'

## Tuesday, October 18, 2011

### An easy problem

A wise man rode into a desert village one evening as the sun was setting. Dismounting from his camel, he asked one of the villagers for a drink of water.‘Of course,’ said the villager and gave him a cup of water. The traveller drank the whole cupful. ‘Thank you,’ he said. ‘Can I help you at all before I travel on?’‘Yes,’ said the young man. ‘We have a dispute in our family. I am the youngest of three brothers. Our father died recently, God rest his soul, and all he possessed was a small herd of camels. Seventeen, to be exact. He decreed in his will that one half of the herd was to go to my oldest brother, one third to the middle brother and one ninth to me. But how can we divide a herd of 17? We do not want to chop up any camels, they are worth far more alive.’ ‘Take me to your house,’ said the sage. When he entered the house he saw the other two brothers and the man’s widow sitting around the fire arguing. The youngest brother interrupted them and introduced the traveller.

‘Wait,’ said the wise man, ‘I think I can help you. Here, I give you my camel as a gift. Now you have 18 camels. One half goes to the eldest, that’s nine camels. One third goes to the middle son, that’s six camels. And one ninth goes to my friend here, the youngest son. That’s two.’ ‘That’s only 17 altogether,’ said the youngest son. ‘Yes. By a happy coincidence, the camel left over is the one I gave to you. If you could possibly give it back to me, I will continue on my journey.’ And he did.

What went wrong ?

### A difficult problem

Prove or disprove the existence of God.

Answering this question requires a definition of God, which we don't have of course. We could propose a temporarily definition like 'God is the entity that created life on planet Earth, a modest definition because it leaves the question of who created the universe unanswered.

Although still debated, Gödel's incompleteness theorems imply that we won't be able to build computers with a conscious mind capable of creating new mathematics or writing a program that solves all open problems in mathematics. Besides cloning and modifying what we have ( DNA ) we won't be able to create a 'machine' smarter than ourselves.

Our own existence is a paradox we don't understand. History proves that in cases like that humans are creative in inventing a God capable of fixing any problem. Despite centuries of scientific advances we still need a God to explain our existence.

## Saturday, October 15, 2011

### Off-topic: 15 October 2011 - World-wide protest day

Was it Cairo or New York, - Occupy Wall Street - where it started? It sure is spreading. I want to express my solidarity with the people out on the streets today in almost 1600 cities world-wide: Occupy Together.

Since the revolution started in Egypt I watched and compared the news from BBC, CNN, Infowars, Al Jazeera, RT ( Russia ), and Press TV ( Iran ). Now Press TV has been taken off-air in the UK. Draw your own conclusions. Here is what Infowars ( US Libertarian ) had to say about it: Press TV taken off air in UK – war for freedom of speech now on.

Now that the alternative media are flourishing, it turns out that we haven't had a free press for decades, Press TV made that painfully clear.

During the last world war, scientists created the atom bomb, period. 'Because they were afraid the Germans would be first.' We have to assure that they don't have an easy excuse like that next time, a free Internet ensures that.

## Friday, October 14, 2011

### M381 exam

Did M381 exam. All the questions were doable, easy as a matter of fact. Honestly. I am sure I have full marks for the first question I made. But when I was done and looked at the clock it was already past three o'clock. "Should I have been able to do that question in 10 minutes?", I thought. Maybe. I have a painful ear-infection at the moment, and I was drugged of course, prescription painkillers, doctor's order. And antibiotics, of course. I felt like walking on the moon, in an astronaut's suit. Whatever the outcome may be, I can set it right. More later on the exam, when I feel better.

## Monday, October 10, 2011

### The book will never die.

- Foxit Reader 5.

## Sunday, October 9, 2011

### Hypercomputation

Only recently lightspeed as the ultimate limit of speed got challenged. It seems they have been challenging the Turing Machine for a while too.

If you start with studying mathematics you are only three or four centuries behind on contemporary mathematics. That's quite a lot of catching up to do. - Some fields started their development in the previous century though. Like mathematical logic, a field I have been studying this year, and have written about so now and then in this blog. Part of mathematical logic is the theory of computation which showed us what can be computed and what can't. That what can be computed is what can be computed on a Turing Machine, period. - That idea is challenged however in the theory of hypercomputation. A new field in mathematics which is trying to go beyond the limits of the Turing Machine.

A book with an overview of the theory is the following.

## Saturday, October 8, 2011

### The mathematics of revolution

The Occupy Wall Street movement is spreading. It reminds me of Conway's Life game. It could spread enormously and still die out soon, or it could cause permanent change without real massive demonstrations. Nobody knows, nobody can predict this. Still, I think it will be very interesting to find mathematical patterns in global, Internet connected, demonstrations like this. I am sure mathematicians of government agencies are working on it.

If a government does not educate even one generation it is lost. It is in their own interest, it is in the interest of the ruling elite to give all citizens a good education. I think that rule fits all political systems. In the US however they use education to enslave people for the rest of their life to the bankers. Paying back student loans turns out to be very difficult. On top of that teachers get fired or are underpaid. - That does not seem right to me.

## Friday, October 7, 2011

### Primitive recursive function

Normally you calculate n factorial with Factorial[n] or short n!. Mathematica handles the details of the function for you and prints the result.

In the course M381 you have to prove that functions like factorial are a primitive recursive function. This basically means that the function can be defined only in terms of itself, add one, or set to zero. A primitive recursive definition of factorial would look as follows in Mathematica.

suc[n1_] := n1 + 1 add[n1_, 0] := n1 add[n1_, n2_] := suc[add[n1, n2 - 1]] mul[n1_, 0] := 0 mul[n1_, n2_] := add[mul[n1, n2 - 1], n1] fac[0] := suc[0] fac[n_] := mul[n, fac[n - 1]]

As you can see no other Mathematica functions than "+ 1" and "= 0" are used. The functions suc, add, mul, fac are defined for the first time.

For example:
In[67]:= Factorial[6] fac[6] Out[67]= 720 Out[68]= 720 `.

## Tuesday, October 4, 2011

### Comment on "From analog to brain computing ".

Mathematicians have a tendency to regard texts which are not written using 'protocol' as irrelevant. Long ago I wrote a note to a mathematician and his reply was that I should formulate my thoughts in 'standard mathematics'. I did my very best 'to make myself clear'. It was not enough. The thing is mathematicians lose their authority when they leave familiar territory. Well, at least I received a reply. ( Although that was all he did. And I haven't given up on the problem I was working on... )

The blog received a comment, containing what I, for the moment, call 'out-of-the-box' thinking. Non 'standard mathematics' at least. I have moved the comment to this post in an attempt to share this with as much as possible readers. I will reply. But later, I have to let it work on me first.

Regarding our active internal analog math...

I'm a civil/environmental engineer by education but I've been working off and on on a theory which takes the tact that all abstract math symbols and expressions are secondary and arise from a handful of internal analog "math" artifacts and processes. This may not be a very polite thing to say to a mathematician, but I am wondering if you have impressions along the same line?

It turns out that we all get energy to think and do math and other things from the respiration reaction (organics + oxygen -> water + carbon dioxide +energy). And basically, what that means, if you remember your biology or organic chemistry, is, body-wide, within our cells is a ~steady creative flow of about 10^20 water molecules per second -- coming from the 160 kg of O2 we each respire each year. Generally, each water molecule is sort of tetrahedral in shape with two positive and two negative vertices and so, it turns out that there are at least six ways each water molecule can orient within an enfolding field when it first comes into being at a respiration site. That also means that a chain of n-molecules can form in 6^n different ways. Thus a sequence of 12 molecules could form in 6^12, or about 2 billion different ways. A chain of eighteen molecules could associate with 6^18 or 10^14 different impressions. Now, in this analog math theory, I am assuming that repeating vibrations in the environment ought to result in formation of similar stacks and chains of structurally coded water molecules being formed. This gets us a rather crude image of the vibrations of our internal and external environment forming an internal echo or representation within this active internal analog "math", or "language".

I say it's active because the 6^n stacks of water molecules are really also structurally coded hydrogen-bonding packets and such things, when they unfurl, are connected with and influential in protein-formation and protein-folding, which is to say, memory formation and muscle movement, which is to say, in our case, ALL human expression, perhaps beginning with our nearly universal actions and impressions of counting each of our ten fingers and ten toes, and the like.

Bizarre stuff, huh? Lots of little internal Turin devices writing out structural coded signals.

I'm wondering if mathematicians are taught this type of internal analog math as the basis of the abstract math symbols and expressions, or if they are given different associations or impressions, perhaps leaving it that there is just an uncanny (and unknown) relationship between much or all of nature and math?

Also, I vaguely see the similarity between 2^n binary or boolean math and the 6^n "multiple-state structural coding" that I've made up or stumbled onto. I expect the trend continues with starting with other polyhedra which have limited orientations "within enfolding fields" -- when a containing structure is added. My general hunch is the initial condition IS actually significant for us and we can immediately get to multiple states (relevant to ~quantum mechanics/quantum gravity) by starting with tetrahedron and adding the enfolding cube container, rather than the way it's done presently of beginning with the xyz-cubic framework and adding variants.

Initial conditions do matter in mathematics, don't they?

Best regards,
Ralph Frost

@frostscientific
http://magtet.com/images/phpshow.php

Thanks you, Ralph Frost.

### Who am I ?

I am the square root of -1. Who am i?

and of course from GEB:

This sentence contains ten words, eighteen syllables, and sixty-four letters.

From Mathworld - Self-Recursion

## Sunday, October 2, 2011

### From analog to brain computing

Before digital computing took over completely, analog computing was dominant for a short while. An analog computer is based on the creation of a model which represents the problem to be solved. But mathematical models of problems can be created of ( almost ) any problem and these models can be implemented on a digital computer. A digital computer is nothing more than a convenient, fast, Turing Machine or equivalent thereof, i.e. the URM or Abacus. And from Mathematical Logic ( Goedel ) we know that these systems have its limitations. It is theoretically impossible to create a program that solves all mathematical problems. - But physicists and biologists say ( and why should we disagree? ) that we -are- computer ( brain ) controlled machines.

Is that a paradox? Humans can do more than computers, we can solve mathematical problems, in fact we -created- the concept of a 'Turing Machine'. This leads us to Roger Penrose. In The Emperor's New Mind, 1999 he claims that artificial intelligence in computers is impossible. He argued that the human brain must exploit a type of physics that he described as 'non-computable'. By this he means beyond algorithmic computing, and thus digital computing.

A picture that keeps fascinating me is that of a predator bird flying high over its prey before, at a carefully -chosen- moment, it makes the dive and following kill. And this is all done with a tiny bird brain. The best comparable thing made by humans thus far is the drone. A huge flying case loaded with bombs operated by a battery of digital computers assisted by human -computers-. Although humans have created a model of a flying bird, it is operated by a human computer on the ground.

Analog computers were special purpose computers, designed to solve one specific problem. A predator bird will never be able to learn new behavior, it cannot be trained to live with chickens. Not immediately anyaway, if ´evolution´ made the bird.

Let me summarize before this turns into a rant.
- There are other models of computing than the Turing machine, i.e. analog computing, brain computing.
- Digital computing is superior over analog computing, brain computing is superior over digital computing.
- Analog and digital computing are human creations we fully understand.
- We don't understand brain computing (yet?).
- Mathematical logic and computability theory study algorithmic ( digital ) computing.

Goedels theorems are somewhat like Russell's paradox in set theory. Goedel's incompleteness theorems are statements about logic and number theory deduced in and with the rules of logic.

## Saturday, October 1, 2011

### Heatwave : day off study.

Took a day off study today. Have been putting a lot of time in studying lately. Felt like work instead of fun. We have a mini-heatwave in The Netherlands. For the 1st of October it was the hottest day ever ( since recorded weather anyway ). I don't like summers, especially when they turn up in my favorite season autumn. I mean, I think everybody has been off-schedule today. - Tomorrow, I take a day off as well: I really missed working with Mathematica. I got really interested in the foundations of computer science lately. Will read about formal languages, grammars and parsers tomorrow. And of course will have a look at the Mathematica built Lisp interpreter. - I am working on a program myself, SceneGraphica, I need to spend time on that as well. I think I will start all over. Nothing will be lost though. I wouldn't have had the ideas I have now without the effort put in the early versions.

### The Limits of Mathematics ( or: a Lisp interpreter in Mathematica )

( ... ) mathematics because it is an extremely difficult road to traverse. The terrain is extremely demanding. The amount of work and concentration required to build the foundation necessary to continue extending the framework is immense. ( ... ) - David Andrews

Mathematics, as if you have never seen a skyscraper and are traversing the streets of Manhattan. With that mindset, you can only think that people -walk- to the 60th floor... Anyway, feeling overwhelmed by the sheer size and complexity of maths is not going to help. Only people willing to teach, without ulterior selfish motives, can help. One can write a book about mathematics to impress peers, as a way to meet publication quotas or to -teach-. Like the book The Limits of Mathematics does for example. It is a clear taste of the best mathematics has to offer, an invitation to go on to the next level.

- Randomness in arithmetic and the decline and fall of reductionism in pure mathematics
- Elegant LISP programs
- An invitation to algorithmic information theory
- The limits of mathematics
- Appendix. LISP interpreter in Mathematica

The appendix contains the source code of a Lisp interpreter coded in Mathematica. I love that. But the book starts with a clear description of the massive changes taking place in ( the thinking about ) mathematics during the first half of the twentieth century, from Hilbert to Turing.

## Friday, September 30, 2011

### Goedel, Escher, Bach - Lecture 6

In the first six minutes or so Curry gives a fairly good summary of Goedel's Theorem. Unfortunately this is the summary of the previous lecture which was not recorded. It seems nothing is free, not even free video lectures because it turns out the best ( not implying the rest is good ) is missing.

After rushing through formal stuff he wastes five minutes about a three-layer stupid joke about a book he had not read.

I quick-scanned through the rest of the video. Not worth watching, really. Too bad. I looked forward to this.

The take home message of the course. All provable things are true but not necessarily al true things are provable.
Justin Curry

Now that I am mostly through all M381 stuff I am glad it included mathematical logic. I would -not- have done it as a stand-alone course. Logic is hard in the beginning, like most new subjects. It needs time to work on you. I will get back to this in the next M381 post.

Previous posts on the series:
- Lecture 1
- Lecture 2
- Lecture 3
- Lecture 4
- Lecture 5

## Monday, September 26, 2011

### About M381 (1)

Regular readers of this blog know that I have a sort-of rage-button like the Hulk: it is called MathCad. Thank God, I have the anti-dote almost always open and ready: Mathematica. I am not going to repeat why MathCad is a danger to your mental health, but I have to press the MathCad button at least once.

In almost all mathematics courses you can do at the Open University there is software involved. They either deliver a standard package, or ship custom software especially developed for the course ( i.e. MT365 ). The house-package of the Mathematics Department of the Open University is MathCad, version 2001. I have argued that MathCad alone is a reason -not- to choose for the Open University. What a disgrace...

( Calming down. )

They do however recognize that software, computers, tools are relevant in mathematics. Especially in Number Theory computers are used in active research. Another area where they use software in active research is: mathematical logic. Stronger: research in Number Theory is impossible without computers.

These facts are not even mentioned in M381. There are many open source tools available for Number Theory, even more for Mathematical Logic. Not a word about it in M381. One, if not -the- reason is the fact that course development in the Open University is done in a project organization. A project is created with the objective to create course X which will then be used for the next 10 or so years. It is exactly the opposite of what one would expect of a university education. It is not reasonable to expect the Open University to be at the forefront of mathematical research. Simply because other universities in the UK have that role. But it is reasonable to expect more than a static expose of 19th century Gauss number theory and early 20th century logic from Church, Turing and Goedel. In fact, the field is presented as abstract and of theoretical importance only. But Number Theory and Mathematical Logic are extremely relevant and applicable in many industries! But I did not learn that from the course and that is sad.

It took me a lot of work but I found some relevant learning tools in the fields of number theory and mathematical logic. More about those later in this blog.

(*) - I may have misunderstood the concept of 'University' in the UK. I think many universities in the UK are what we call in the Netherlands 'schools'. They deliver professionals with a degree in all fields through excellent education but they don't do research and so on. They don't add to the body of knowledge. They process and transfer knowledge. That description fits the Open University as well. - A marketing issue is that students like to have a 'university' education. And marketing people love empty heads boxes, they have a fancy word for it too: the 'packaging'. Does that make sense?

## Saturday, September 24, 2011

### Goedel, Escher, Bach - Lecture 5

A few months ago I started to watch the MIT video lecture series on Goedel, Escher, Bach. Due to time constraints I wasn't able to complete watching the entire series. Today I continued with watching lecture 5. I have learned quite a lot on the subject through M381 and I am about to really 'get it' as far as the Goedel Incompleteness Theorems are concerned. My first reading of GEB took months and now parts of the book begin to look simple. If you don't know what I mean browse through a mathematics book you thought was hard, a few years ago. It often seems if there is 'nothing in the book'. The odd thing with Goedel ( and with all mathematics, I suppose ) is that in your mind you think you can explain it to a laymen in one or two sentences. ( It is -that- simple, I am afraid. ) The power of mathematics is that it can capture an entire knowledge tree in a single word. That word remains meaningless without understanding of all the words in the knowledge tree.

A bit about lecture 5.

 Dress shows arrogance

I wonder if Justin Curry would go to a job interview in that Club Med outfit. Students are paying customers ( and a pool of cheap labor for lucrative research deals the university makes ) deserving respect from teaching staff.

 Formal number theory ( as in M381 )

Justin talks about Typographic Number Theory, ( formal number theory in M381 ). For example $$\forall x ( \neg x = \mathbf{0} ( \exists y x = y') )$$ can be interpreted as
"Every x that is not equal to 0 is the successor of some y."
Leibniz was the first to propose a formal language for number theory. He asked whether it was true that an algorithm could decide if a statement in number theory was true. - Although in M381 this question is answered negatively that does not mean computers can not play a role in proving mathematical propositions. There is an abundance of ( open source ) software for proving theorems.

( Not in video: ) Isabelle a formal proof theory assistant has been used in testing an operating system kernel written in C and assembler. It not only verified that the spec was implemented correctly but it also discovered hundreds (...) of programming and design (...) errors which were not found by traditional testing methods.

Previous posts on the series:
- Lecture 1
- Lecture 2
- Lecture 3
- Lecture 4

## Welcome to The Bridge

Mathematics: is it the fabric of MEST?
This is my voyage
My continuous mission
To uncover hidden structures
To create new theorems and proofs
To boldly go where no man has gone before

(Raumpatrouille – Die phantastischen Abenteuer des Raumschiffes Orion, colloquially aka Raumpatrouille Orion was the first German science fiction television series. Its seven episodes were broadcast by ARD beginning September 17, 1966. The series has since acquired cult status in Germany. Broadcast six years before Star Trek first aired in West Germany (in 1972), it became a huge success.)