Self-referential systems, recusion and other stuff.

Post Reply
Message
Author
TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Self-referential systems, recusion and other stuff.

#1 Post by TheGreenAnger » Fri Oct 14, 2022 11:52 am

Interesting recursive patterns... .e.g. the Fibonacci Sequence....

Fn = Fn-1 + Fn-2, where n > 1

My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recursion and other stuff.

#2 Post by TheGreenAnger » Sat Oct 15, 2022 6:28 am

Recusion... I recuse myself! :-o

Recursion - Grrrr!

Then there is the Mandlebrot set.

f(x) = x² + c

My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recursion and other stuff.

#3 Post by TheGreenAnger » Sat Oct 15, 2022 6:49 am

Talking of the Fibonacci series and recursion, the lambda calculus predicated programming language Lisp/LISP uses recursion as opposed to the loop and is a very good programming language for efficiently, some might say elegantly, generating such series.

The BBC micro had a good Lisp interpreter all those years back. I wonder if any fellow nerds here remember that?
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

talmacapt
Capt
Capt
Posts: 656
Joined: Fri Aug 06, 2021 9:29 am
Location: Finland
Gender:

Re: Just joined

#4 Post by talmacapt » Sun Oct 16, 2022 3:54 pm

Now that brought back memories of doing a pure mathematics degree in the sixties.

Calculators were not generally available and computers consisted of large rooms and punch cards.

Very often the only way to solve a function, what today would be done on a calculator, would be to recursively approach a solution.

A very time consuming process for even fairly simple expressions.

Just realised there is a post in the aftn section where this really belongs.

Can you move it for me?

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Just joined

#5 Post by TheGreenAnger » Mon Oct 17, 2022 4:59 am

talmacapt wrote:
Sun Oct 16, 2022 3:54 pm
Now that brought back memories of doing a pure mathematics degree in the sixties.

Calculators were not generally available and computers consisted of large rooms and punch cards.

Very often the only way to solve a function, what today would be done on a calculator, would be to recursively approach a solution.

A very time consuming process for even fairly simple expressions.

Just realised there is a post in the aftn section where this really belongs.

Can you move it for me?
I remember Algol 60 had a very good recursive ability, whereas the Fortran compiler, used by me at UCT on the Sperry Univac in the early 80's, didn't support the same at the time. Programmable scientific calculators were available by then, but weren't cheap, and there was a lot of HP, Casio and Texas instruments rivalry going on. One still had to book mainframe time and type all the cards up oneself. The halls of residence, conveniently, had a punch card machine in a room in the foyer, if one was too slack to walk up the hill to the computer centre. Later I used the BBC micro which had a LIsp interpreter which supported recursion, and I purchased the BBC Micro Forth interpreter/ 6502 compiler which did the same, the language having originally been designed to control the Jodrell Bank telescope which I only got to see many years later as a tourist. Here is a copy of the manual. Brings back memories.

http://stardot.org.uk/mirrors/www.bbcdo ... mputer.pdf
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
Ex-Ascot
Test Pilot
Test Pilot
Posts: 13132
Joined: Mon Aug 24, 2015 7:16 am
Location: Botswana but sometimes Greece
Gender:
Age: 68

Re: Self-referential systems, recusion and other stuff.

#6 Post by Ex-Ascot » Mon Oct 17, 2022 11:41 am

Looks like a nice day there today. As a kid I used to cycle there from home.

https://www.jb.man.ac.uk/webcam/
'Yes, Madam, I am drunk, but in the morning I shall be sober and you will still be ugly.' Sir Winston Churchill.

User avatar
Undried Plum
Chief Pilot
Chief Pilot
Posts: 7308
Joined: Sun Jul 22, 2018 8:45 pm
Location: 56°N 4°W

Re: Self-referential systems, recusion and other stuff.

#7 Post by Undried Plum » Mon Oct 17, 2022 12:10 pm

The Hewlett Packard 9845 manual had a glossary at the back. The entry for Recursion said simply "See Recursion".

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recusion and other stuff.

#8 Post by TheGreenAnger » Mon Oct 17, 2022 12:39 pm

Undried Plum wrote:
Mon Oct 17, 2022 12:10 pm
The Hewlett Packard 9845 manual had a glossary at the back. The entry for Recursion said simply "See Recursion".
=))

A bit like this... Self-referential systems, recursion and other stuff.

Long live the Casio fx-100C.
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

Boac
Chief Pilot
Chief Pilot
Posts: 17248
Joined: Fri Aug 28, 2015 5:12 pm
Location: Here

Re: Self-referential systems, recusion and other stuff.

#9 Post by Boac » Mon Oct 17, 2022 2:40 pm

What do you put on a Christmas card to a Conservative voter?

"Please turn over"

On both sides?

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recusion and other stuff.

#10 Post by TheGreenAnger » Mon Oct 17, 2022 3:34 pm

Boac wrote:
Mon Oct 17, 2022 2:40 pm
What do you put on a Christmas card to a Conservative voter?

"Please turn over"

On both sides?
Yes. ;)))

Or confuse the already confused Conservative with:

Front: The sentence on the other side of this card is True.
Back: The sentence on the other side of this card is False.

All of those deluded C's should be forced to listen to the high priest of non-contradiction (although he seems to avoid quantum systems which may be true and false simultaneously until a measurement is made and the system decoheres into a true or false outcome, a superposition of spin up, spin down, with a 50% probability of either.) Sorry I digress! ;)))




for those that find this stuff interesting.... (I have deviated from recursion but will return) ...

Semantics in natural language should be avoided and replaced with the clarity of mathematics in these cases. Philosophers seeking to count the number of angels that can dance on a pinhead methinks!
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
Fox3WheresMyBanana
Chief Pilot
Chief Pilot
Posts: 13185
Joined: Thu Sep 03, 2015 9:51 pm
Location: Great White North
Gender:
Age: 61

Re: Self-referential systems, recusion and other stuff.

#11 Post by Fox3WheresMyBanana » Mon Oct 17, 2022 8:22 pm

Is the political system not recursive?
Each generation possesses all the prejudices and sins of the previous, only with less intelligence and fewer principles.

Recursion was necessary with jet engine design (probably still is). At University, one would start with a guess at initial parameters, and after several manual calculations, if one was close enough, the output the first time could be fed back in, and after about 3 iterations one would end up with a stable answer. If the guess was wrong, the solutions would diverge, and one had to start again with another guess. I was most fortunate in my final exam, in that being on an RAF Scholarship I recognised the design profile given as that of the Nimrod - not much else bimbles about at sea level on two engines. Banged out the right answer in half the usual time.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recusion and other stuff.

#12 Post by TheGreenAnger » Tue Oct 18, 2022 6:32 am

Fox3WheresMyBanana wrote:
Mon Oct 17, 2022 8:22 pm
Is the political system not recursive?
Each generation possesses all the prejudices and sins of the previous, only with less intelligence and fewer principles.

Recursion was necessary with jet engine design (probably still is). At University, one would start with a guess at initial parameters, and after several manual calculations, if one was close enough, the output the first time could be fed back in, and after about 3 iterations one would end up with a stable answer. If the guess was wrong, the solutions would diverge, and one had to start again with another guess. I was most fortunate in my final exam, in that being on an RAF Scholarship I recognised the design profile given as that of the Nimrod - not much else bimbles about at sea level on two engines. Banged out the right answer in half the usual time.
Finite Systems Analysis 101 I guess.

Run the function(s) popping everything onto the stack, run again and again ad infinitum, or to the point of stack overflow or the point where the numbers reach optimal boundary conditions and roll up again, popping the variables off the stack as you go and generate your model.

How to grossly simplify everything in one crude sentence. ;)))
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
llondel
Chief Pilot
Chief Pilot
Posts: 5926
Joined: Wed Oct 03, 2018 3:17 am
Location: San Jose

Re: Self-referential systems, recusion and other stuff.

#13 Post by llondel » Wed Oct 19, 2022 12:45 am

TheGreenAnger wrote:
Tue Oct 18, 2022 6:32 am
Finite Systems Analysis 101 I guess.

Run the function(s) popping everything onto the stack, run again and again ad infinitum, or to the point of stack overflow or the point where the numbers reach optimal boundary conditions and roll up again, popping the variables off the stack as you go and generate your model.

How to grossly simplify everything in one crude sentence. ;)))
Technically you push it onto the stack and pop it off again...

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recusion and other stuff.

#14 Post by TheGreenAnger » Wed Oct 19, 2022 12:50 am

llondel wrote:
Wed Oct 19, 2022 12:45 am
TheGreenAnger wrote:
Tue Oct 18, 2022 6:32 am
Finite Systems Analysis 101 I guess.

Run the function(s) popping everything onto the stack, run again and again ad infinitum, or to the point of stack overflow or the point where the numbers reach optimal boundary conditions and roll up again, popping the variables off the stack as you go and generate your model.

How to grossly simplify everything in one crude sentence. ;)))
Technically you push it onto the stack and pop it off again...
You are right Sir, but outside the 8086 and 68000 Motorola family, as one wandered into Seymour Cray land into the new quantum world, a push and a pop are statiscally equivalent. All just depends on which way you run the equation.
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recusion and other stuff.

#15 Post by TheGreenAnger » Fri Oct 21, 2022 5:42 pm

I guess this fits into the other stuff category, but it is an interesting diversion into the world of large but still finite numbers.

Tree 3





Once one gets into the world of infinite numbers one teeters into a mind-boggling world that was reputed (probably apocryphally) to have precipitated mathematician George Cantor's breakdown.
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: Self-referential systems, recusion and other stuff.

#16 Post by TheGreenAnger » Fri Oct 21, 2022 5:45 pm

My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

Post Reply