Full Programming For Beginners The Fundamentals Basic Introduction To Programming Concepts With Fractals Bjørn I F Westerheim PDF All Chapters
Full Programming For Beginners The Fundamentals Basic Introduction To Programming Concepts With Fractals Bjørn I F Westerheim PDF All Chapters
com
https://textbookfull.com/product/programming-for-
beginners-the-fundamentals-basic-introduction-to-
programming-concepts-with-fractals-bjorn-i-f-
westerheim/
https://textbookfull.com/product/introduction-to-programming-with-
fortran-chivers/
textbookfull.com
https://textbookfull.com/product/modern-c-for-absolute-beginners-a-
friendly-introduction-to-the-c-programming-language-slobodan-
dmitrovic/
textbookfull.com
https://textbookfull.com/product/modern-c-for-absolute-beginners-a-
friendly-introduction-to-the-c-programming-language-dmitrovic-
slobodan/
textbookfull.com
https://textbookfull.com/product/sports-journalism-and-women-athletes-
coverage-of-coming-out-stories-william-p-cassidy/
textbookfull.com
International Relations from the Global South Worlds of
Difference 1st Edition Arlene B Tickner Karen Smith
https://textbookfull.com/product/international-relations-from-the-
global-south-worlds-of-difference-1st-edition-arlene-b-tickner-karen-
smith/
textbookfull.com
https://textbookfull.com/product/african-entrepreneurship-leo-paul-
dana/
textbookfull.com
https://textbookfull.com/product/the-palgrave-handbook-of-australian-
and-new-zealand-criminology-crime-and-justice-1st-edition-antje-
deckert/
textbookfull.com
https://textbookfull.com/product/7th-international-symposium-on-high-
temperature-metallurgical-processing-1st-edition-jiann-yang-hwang/
textbookfull.com
https://textbookfull.com/product/routledge-handbook-of-european-
welfare-systems-2nd-edition-sonja-blum/
textbookfull.com
Chi-Squared Data Analysis and Model Testing for Beginners
1st Edition Carey Witkov
https://textbookfull.com/product/chi-squared-data-analysis-and-model-
testing-for-beginners-1st-edition-carey-witkov/
textbookfull.com
PROGRAMMING
FOR BEGINNERS,
THE FUNDAMENTALS
Basic programming concepts with Fractals
Volume 1: Theory
PROGRAMMING
FOR BEGINNERS,
THE FUNDAMENTALS
Basic programming concepts with Fractals
Volume 1: Theory
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
2
A Bearing E-Book
The information in this text is distributed on an “As Is” basis, without warranty. While every precaution has
been taken in the preparation of this work, the author shall not have any liability to any person or entity
with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information
contained in it.
Product and company names mentioned herein may be the trademarks of their respective owners. In
place of using a trademark symbol with occurrences of trademarked names, I am using the names only in
an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License.
You can find relevant license information at http://creativecommons.org/licenses/by-nc-sa/4.0/ .
CONTACT
If you have questions, requests, praise, criticism or just feel like saying hi, please email me at:
CONTRIBUTIONS
This book is provided free of charge, but who doesn’t like happy little surprises ? If you feel like
encouraging me to continue writing, I welcome your help in any of the following formats.
(This is entirely up to you ofcourse. If in doubt, do save your cryptocurrency for a rainy day.)
3
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
ATTRIBUTES
I have used content from Pixabay ( https://pixabay.com ) for some of the illustrations in this book. All
content were marked « Free for commercial use, no attribution required ». However, I figure it is only fair
to give credit where credit is due. These are [email protected] who have graciously created and made
available content of their own for free:
openclipart-vectors ( https://pixabay.com/users/openclipart-vectors-30363/ )
clker-free-vector-images ( https://pixabay.com/users/clker-free-vector-images-3736/ )
stux ( https://pixabay.com/users/stux-12364/ )
mahuasarkar ( https://pixabay.com/users/mahuasarkar-5775515/ )
jjuni ( https://pixabay.com/users/jjuni-27151/ )
mocho ( https://pixabay.com/users/mocho-156870/ )
200degrees ( https://pixabay.com/users/200degrees-2051452/ )
mohamed_hassan ( https://pixabay.com/users/mohamed_hassan-5229782/ )
pagdev ( https://pixabay.com/users/pagdev-4749277/ )
tkaucic ( https://pixabay.com/users/tkaucic-1450822/ )
haticeerol ( https://pixabay.com/users/haticeerol-14967706 )
mashiromomo ( https://pixabay.com/users/mashiromomo-3944009/ )
jorgeduardo ( https://pixabay.com/users/jorgeduardo-8516248/ )
janjf93 ( https://pixabay.com/users/janjf93-3084263/ )
davidrockdesign ( https://pixabay.com/users/davidrockdesign-2595351/ )
thedigitalartist ( https://pixabay.com/users/thedigitalartist-202249/ )
workandpix ( https://pixabay.com/users/wokandapix-614097/ )
martinelle ( https://pixabay.com/users/martinelle-495565/ )
ryanmcguire ( https://pixabay.com/users/ryanmcguire-123690/ )
Startupstockphotos ( https://pixabay.com/users/startupstockphotos-690514/ )
Should you find that the list is incomplete, or that I have made use content that is not free to use, please
contact me with the proper details so I can act accordingly.
10 9 8 7 6 5 4 3 2 1
4
A Bearing E-Book
5
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
6
A Bearing E-Book
About t he author
Hi there! My name is Bjørn Inge Westerheim. I hold a masters degree in
industrial engineering and am part owner of an IT company in Norway.
I have worked in the field of IT for more than two decades. I was part of the
development team that pioneered conversion to Digital Cinema in Norway,
creating both hardware and software solutions. Over the years, I helped training
cinema technicians in the use of some of these systems and I have helped
people of all ages learn how to build and use computers.
About t he book
This book is conceptualized, prewritten, drafted, proofread, illustrated, edited
and published by the author alone. All done purely in my spare time.
I have tried to weed out typos and wordy sentences, but every time I think I am
done, I find another section wordy of rewriting or diagram that needs adjusting.
I feel I have passed the 80%-threshold and reached the point where it is worth
sharing. Otherwise, I am afraid it would never see the light of day.
7
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
Throughout the book, I will touch on basic math to explain certain topics. You
may benefit from having at least a passing knowledge of basic math, but I will
do my best to explain everything in detail.
If you had some previous experience in programming (e.g. you took a basic
course in programming at some point), but you forgot all about it, this course
may be for you as well.
If you are familiar with programming concepts, but feel the urge to get back in
to programming, you may want to quickly skim through this book, and then jump
quickly over to “Volume 2: Creating code”
If you already know the basics, but want to know how to build a basic fractal
image generator, you probably can find a tip or two herein.
What i s in Volume 2?
I have divided the tutorial into two parts. Each part covers the same material,
but from different perspectives.
In the book you are reading now, I will try to expose you to all the basics you
need to get started programming. It contains all the dry theoretical parts.
8
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
A Bearing E-Book
C O N TE NTS
9
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
10
A Bearing E-Book
TABLE OF FIGURES
Figure 1-1 Traditional computing devices ............................................................................................................................................ 2
Figure 1-2 Non-traditional computing devices ................................................................................................................................... 2
Figure 1-3 Moving data.................................................................................................................................................................................3
Figure 1-4 The programming vehicle..................................................................................................................................................... 5
Figure 1-5 The compile process ............................................................................................................................................................... 6
Figure 1-6 Snapshot of in memory commands ................................................................................................................................... 7
Figure 1-7 Long term memory storage ................................................................................................................................................... 8
Figure 1-8 QR Code ........................................................................................................................................................................................ 9
Figure 1-9 Saving progress........................................................................................................................................................................ 9
Figure 1-10 Permanent storage fallback ............................................................................................................................................. 10
Figure 1-11 Memory blocks ....................................................................................................................................................................... 10
Figure 1-12 20k memory .............................................................................................................................................................................. 11
Figure 1-13 Storing string data ................................................................................................................................................................ 11
Figure 2-1 The concerns of a computer program ........................................................................................................................... 14
Figure 2-2 Stripping comments during compile process ............................................................................................................ 15
Figure 2-3 String comparison ................................................................................................................................................................. 17
Figure 2-4 Object holding collection of decimal numbers .......................................................................................................... 18
Figure 2-5 The String object .................................................................................................................................................................... 19
Figure 2-6 Empty String object ............................................................................................................................................................... 19
Figure 2-7 Data type symbols ................................................................................................................................................................. 20
Figure 2-8 Symbol usage examples .................................................................................................................................................... 20
Figure 2-9 The variable ............................................................................................................................................................................. 21
Figure 2-10 Storing data in memory through variable assignment ........................................................................................ 21
Figure 2-11 Assigning a value to a variable ...................................................................................................................................... 22
Figure 2-12 Matching data types and variables .............................................................................................................................24
Figure 2-13 Applying formula for circumference of a circle........................................................................................................24
Figure 2-14 Applying division and modulus operations .............................................................................................................25
Figure 2-15 Remainder only result ....................................................................................................................................................... 26
Figure 2-16 Elements of a divison......................................................................................................................................................... 26
Figure 2-17 Storing the wrong data type to a variable ................................................................................................................ 28
Figure 2-18 Automatic cast of integer value to decimal.............................................................................................................. 28
Figure 2-19 Multiplying an integer and decimal with decimal result ..................................................................................... 31
Figure 2-20 Multiplying an integer and decimal value with integer result ..........................................................................32
Figure 2-21 Collection types .................................................................................................................................................................... 33
Figure 2-22 Memory arrangement ...................................................................................................................................................... 35
Figure 2-23 Managing data with List<int> ....................................................................................................................................... 35
Figure 2-24 List containers ..................................................................................................................................................................... 36
Figure 2-25 Managing items with List<int> ......................................................................................................................................37
Figure 2-26 Object function..................................................................................................................................................................... 38
Figure 2-27 The Function definition ..................................................................................................................................................... 39
Figure 2-28 Calling functions on the List<> object ........................................................................................................................ 39
Figure 2-29 Memory arrangment in List object .............................................................................................................................. 40
Figure 2-30 Storing int in List<int> collection ................................................................................................................................... 41
Figure 2-31 Storing and representing 2-dimensional lists ........................................................................................................ 44
Figure 3-1 Documenting code with diagrams................................................................................................................................. 53
Figure 3-2 Function with input and output ........................................................................................................................................57
Figure 3-3 The ‘getPi’ function ............................................................................................................................................................... 58
Figure 3-4 The ‘add’ function with two inputs................................................................................................................................. 59
Figure 3-5 Slope of P1-P2 ......................................................................................................................................................................... 62
11
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
12
A Bearing E-Book
13
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
14
A Bearing E-Book
Now, where do we find a topic that covers all of this, while also being simple
enough for complete beginners to grasp?
Eventually this approach has led me to the wonder of fractals. You have
probably seen them in their various shapes at some point. They come in
different forms, but all have this recognizable complex quality to them.
15
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
The image below shows a section of a fractal known as the Mandelbrot fractal.
It looks like the code needed to create this is very complex. Luckily, that is not
the case at all. In fact, the nice thing about fractals is exactly that. They exhibit
complex properties, but are born from very simple rules.
If you were feeling brave, you could actually do the calculations by hand. The
calculations only require basic math skills, but you would need a lot of extra time
on your hands. A high-resolution image could require hundreds of millions of
calculations. It would take you a lifetime by hand, but with the help of a
computer, you can have the image ready in seconds.
It sounds a lot more fun than building a calculator app, doesn’t it?
16
A Bearing E-Book
The problem with programming is that you need to understand both the big
picture and the small picture all at once.
is the book you are reading now. It aims to introduce you to the basic
concepts of programming as succinctly as possible.
walks you through all material from , but in the context of writing
and executing code.
17
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
In general, there are alot of dependencies. Most of these are possible to learn
just fine, but we want to avoid having to worry about too many details all at once.
That is why I shall save all those gritty details for “Volume 2”. In this book, we
will only focus on the matter at hand; the basics of programming. We want to
explore programming concepts and the language we use to implement them.
We shall do so in the scope of building a graphical application.
The book
The examples
18
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
A Bearing E-Book
If you hate fractals with a passion, I guess you are out of luck though. My sincere
apologies about that.
The student
You do not have to arm yourself with pen and paper to read this book. Just come
at it casually, but with an openminded attitude and an intention to learn. Try to
focus on the main concepts presented. Most important of all; take your time.
If you feel they do not help, skip them. Just skim through til
you reach the next paragraph. Try to make a note of the
programming concept being taught, but do not get hung up
on the content of examples.
19
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
Avoid letting frustration derail you. Focus on the big picture and your intention
to learn.
I will repeat myself throughout the book, so chances are you will have more than
one chance at comprehending a specific topic.
The outcome
Once you feel you grokked everything in this book, it is time to get your feet wet.
In “Volume 2: Creating code” I will show you exactly how to get up and running
with your programming environment and producing applications of your own.
Since content in the next volume deal with specifics on creating code, it ties in
with specifics of programming such as choice of programming language and
environment.
Different languages will implement the same concepts in their own way.
Sometimes the only difference is in naming schemes, other times there are
conceptual differences
20
A Bearing E-Book
I have planned multiple language editions of the second volume. Either book will
follow the outline laid in this book, but the chosen language will dictate the final
form of each book.
The first two editions are based around ‘Visual C#’ and ‘Python’. God willing, I
will be able to expand the selection with editions covering more languages and
perhaps on multiple platforms.
21
PROGRAMMING FOR BEGINNERS, THE FUNDAMENTALS
22
CHAPTER 1
The Background
Random documents with unrelated
content Scribd suggests to you:
The Project Gutenberg eBook of Iamblichus'
Life of Pythagoras, or Pythagoric Life
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.
Author: Iamblichus
Language: English
BY THOMAS TAYLOR.
v
INTRODUCTION.
When it is considered that Pythagoras was the father of philosophy,
authentic memoirs of his life cannot fail to be uncommonly
interesting to every lover of wisdom, and particularly to those who
reverence the doctrines of Plato, the most genuine and the best of
all his disciples. And that the following memoirs of Pythagoras by
Iamblichus are authentic, is acknowledged by all the critics, as they
are for the most part obviously derived from sources of very vi
high antiquity; and where the sources are unknown, there is
every reason to believe, from the great worth and respectability of
the biographer, that the information is perfectly accurate and true.
1
THE LIFE,
&c.
CHAP. I.
CHAP. II.
It is said, therefore, that Ancæus who dwelt in Samos in
Cephallenia, was begot by Jupiter, whether he derived the fame of
such an honorable descent through virtue, or through a certain
greatness of soul. He surpassed, however, the rest of the
Cephallenians in wisdom and renown. This Ancæus, therefore, was
ordered by the Pythian oracle to form a colony from Arcadia and
Thessaly; and that besides this, taking with him some of the
inhabitants of Athens, Epidaurus, and Chalcis, and placing himself at
their head, he should render an island habitable, which from the
[8]
virtue of the soil and land should be called Melamphyllos; and that
he should call the city Samos, on account of Same in 3
Cephallenia. The oracle, therefore, which was given to him, was
as follows: “I order you, Ancæus, to colonise the marine island
Samos instead of Same, and to call it Phyllas.” But that a colony was
collected from these places, is not only indicated by the honors and
sacrifices of the Gods, transferred into those regions together with
the inhabitants, but also by the kindred families that dwell there,
and the associations of the Samians with each other.
But after his father Mnesarchus had returned from Syria to Samos,
with great wealth, which he had collected from a prosperous
navigation, he built a temple to Apollo, with the inscription of
Pythius; and took care to have his son nourished with various and
the best disciplines, at one time by Creophilus, at another by
Pherecydes the Syrian, and at another by almost all those who
presided over sacred concerns, to whom he earnestly recommended
Pythagoras, that he might be as much as possible sufficiently
instructed in divine concerns. He, however, was educated in such a
manner, as to be fortunately the most beautiful and godlike of all
those that have been celebrated in the annals of history. On the
death of his father, likewise, though he was still but a youth, his
aspect was most venerable, and his habits most temperate, so that
he was even reverenced and honored by elderly men; and converted
the attention of all who saw and heard him speak, on himself, and
appeared to be an admirable person to every one who beheld 7
him. Hence it was reasonably asserted by many, that he was
the son of a God. But he being corroborated by renown of this kind,
by the education which he had received from his infancy, and by his
natural deiform appearance, in a still greater degree evinced that he
deserved his present prerogatives. He was also adorned by piety and
disciplines, by a mode of living transcendency good, by firmness of
soul, and by a body in due subjection to the mandates of reason. In
all his words and actions, he discovered an inimitable quiet and
serenity, not being subdued at any time by anger, or laughter, or
emulation, or contention, or any other perturbation or precipitation
of conduct; but he dwelt at Samos like some beneficent dæmon.
Hence, while he was yet a youth, his great renown having reached
Thales at Miletus, and Bias at Priene, men illustrious for their
wisdom, it also extended to the neighbouring cities. To all which we
may add, that the youth was every where celebrated as the long-
haired Samian, and was reverenced by the multitude as one under
the influence of divine inspiration. But after he had attained the
eighteenth year of his age, about the period when the tyranny of
Policrates first made its appearance, foreseeing that under such a
government he might receive some impediment in his studies, which
engrossed the whole of his attention, he departed privately by night
with one Hermodamas (whose surname was Creophilus, and 8
who was the grandson of him who had formerly been the host,
friend, and preceptor in all things of Homer the poet,) to
Pherecydes, to Anaximander the natural philosopher, and to Thales
at Miletus. He likewise alternately associated with each of these
philosophers, in such a manner, that they all loved him, admired his
natural endowments, and made him a partaker of their doctrines.
Indeed, after Thales had gladly admitted him to his intimate
confidence, he admired the great difference between him and other
young men, whom Pythagoras left far behind in every
accomplishment. And besides this, Thales increased the reputation
Pythagoras had already acquired, by communicating to him such
disciplines as he was able to impart: and, apologizing for his old age,
and the imbecility of his body, he exhorted him to sail into Egypt,
[10]
and associate with the Memphian and Diospolitan priests. For he
confessed that his own reputation for wisdom, was derived from the
instructions of these priests; but that he was neither naturally, nor
by exercise, endued with those excellent prerogatives, which were
so visibly displayed in the person of Pythagoras. Thales, therefore,
gladly announced to him, from all these circumstances, that he
would become the wisest and most divine of all men, if he
associated with these Egyptian priests.
9
CHAP. III.
CHAP. IV.
But here, while he frequented all the Egyptian temples with the
greatest diligence and with accurate investigation, he was both
admired and loved by the priests and prophets with whom he
associated. And having learnt with the greatest solicitude every
particular, he did not neglect to hear of any transaction that was
celebrated in his own time, or of any man famous for his wisdom, or
any mystery in whatever manner it might be performed; nor did he
omit to visit any place in which he thought something more excellent
might be found. On this account he went to all the priests, by whom
he was furnished with the wisdom which each possessed. He spent
therefore two and twenty years in Egypt, in the adyta of temples,
astronomizing and geometrizing, and was initiated, not in a
superficial or casual manner, in all the mysteries of the Gods, till at
length being taken captive by the soldiers of Cambyses, he 13
was brought to Babylon. Here he gladly associated with the
Magi, was instructed by them in their venerable knowledge, and
learnt from them the most perfect worship of the Gods. Through
their assistance likewise, he arrived at the summit of arithmetic,
music, and other disciplines; and after associating with them twelve
years, he returned to Samos about the fifty-sixth year of his age.
CHAP. V.
CHAP. VI.
And these indeed were such as philosophized. But the greatest part
of his disciples consisted of auditors whom they call Acusmatici, who
on his first arrival in Italy, according to Nicomachus, being captivated
by one popular oration alone, exceeded two thousand in number.
These, with their wives and children, being collected into one very
large and common auditory, called Homacoïon, and which for its
magnitude resembled a city, founded a place which was universally
called Magna Græcia. This great multitude of people likewise,
receiving laws and mandates from Pythagoras as so many divine
precepts, and without which they engaged in no occupation, dwelt
together with the greatest general concord, celebrated and ranked
by their neighbours among the number of the blessed. At the same
time, as we have already observed, they shared their possessions in
common. Such also was their reverence for Pythagoras, that they
numbered him with the Gods, as a certain beneficent and most
philanthropic dæmon. And some indeed celebrated him as the
Pythian, but others as the Hyperborean Apollo. Some again 19
considered him as Pæon, but others as one of the dæmons
that inhabit the moon; and others celebrated him as one of the
[11]
Olympian Gods, who, in order to benefit and correct the mortal
life, appeared to the men of those times in a human form, in order
that he might extend to them the salutary light of felicity and
philosophy. And indeed a greater good never came, nor ever will
come to mankind, than that which was imparted by the Gods 20
through this Pythagoras. Hence, even now the proverb of the
long-haired Samian, is applied to the most venerable man. But
Aristotle relates, in his Treatise On the Pythagoric Philosophy, that
such a division as the following was preserved by the Pythagoreans
among their principal arcana; viz. that of rational animals one kind is
a God, another man, and another such as Pythagoras. And indeed
they very reasonably apprehended him to be a being of this kind,
through whom a right conception and conformable to things
themselves was introduced of Gods, heroes, and dæmons; of the
world, the all-various motion of the spheres and stars, their
oppositions, eclipses, and inequalities, their eccentricities and
epicycles; of all the natures contained in the heavens and the earth,
together with those that have an intermediate subsistence, whether
apparent or occult. Nor was there anything (in all this variety of
information) at all contrary to the phenomena, or the conceptions of
intellect. To which we may add, that all such disciplines, theories,
and scientific investigations, as truly invigorate the eye of the soul,
and purify the intellect from the blindness introduced by studies of a
different kind, so as to enable it to perceive the true principles and
causes of the universe, were unfolded by Pythagoras to the Greeks.
But besides all this, the best polity, popular concord, community of
possessions among friends, the worship of the gods, piety to 21
the dead, legislation, erudition, silence, abstinence from
animals, continence, temperance, sagacity, divinity, and in one word,
whatever is anxiously sought after by the lovers of learning, was
brought to light by Pythagoras. On all these accounts, therefore, as I
have just now said, he was (every where) so transcendently
admired.
CHAP. VII.
CHAP. VIII.
All his auditors likewise having granted that the judgment of the
immortals is most valid, he said he would demonstrate to the
Crotonians, by the example of Hercules the founder of the colony
brought to Crotona, that it is necessary to be voluntarily obedient to
the mandates of parents, as they knew from tradition that the God
himself had undertaken such great labors in consequence of obeying
the commands of one older than himself, and being victorious 26
in what he had undertaken to accomplish, had instituted in
honor of his father the Olympic games. He also showed them that
they should associate with each other in such a manner, as never to
be in a state of hostility to their friends, but to become most rapidly
friends to their enemies; and that they should exhibit in modesty of
behaviour to their elders, the benevolent disposition of children
towards their parents; but in their philanthropy to others, fraternal
love and regard.