0% found this document useful (0 votes)
83 views

Introducing Algorithms In C A Step By Step Guide To Algorithms In C 1st Ed Luciano Manelli pdf download

Ebook

Uploaded by

goelffeabhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views

Introducing Algorithms In C A Step By Step Guide To Algorithms In C 1st Ed Luciano Manelli pdf download

Ebook

Uploaded by

goelffeabhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

Introducing Algorithms In C A Step By Step Guide

To Algorithms In C 1st Ed Luciano Manelli


download

https://ebookbell.com/product/introducing-algorithms-in-c-a-step-
by-step-guide-to-algorithms-in-c-1st-ed-luciano-manelli-55547098

Explore and download more ebooks at ebookbell.com


Here are some recommended products that we believe you will be
interested in. You can click the link to download.

Introducing Algorithms In C A Step By Step Guide To Algorithms In C


Luciano Manelli

https://ebookbell.com/product/introducing-algorithms-in-c-a-step-by-
step-guide-to-algorithms-in-c-luciano-manelli-11074058

Fundamentals Of Cryptography Introducing Mathematical And Algorithmic


Foundations Undergraduate Topics In Computer Science 1st Ed 2021
Duncan Buell

https://ebookbell.com/product/fundamentals-of-cryptography-
introducing-mathematical-and-algorithmic-foundations-undergraduate-
topics-in-computer-science-1st-ed-2021-duncan-buell-32792596

Introducing Islam A Graphic Guide Graphic Guides 2nd Revised Edition


2nd Ziauddin Sardar

https://ebookbell.com/product/introducing-islam-a-graphic-guide-
graphic-guides-2nd-revised-edition-2nd-ziauddin-sardar-48359932

Introducing Comparative Politics 5th Edition Stephen Walter Orvis

https://ebookbell.com/product/introducing-comparative-politics-5th-
edition-stephen-walter-orvis-44864186
Introducing Financial Mathematics Theory Binomial Models And
Applications Chapman And Hallcrc Financial Mathematics Series 1st
Edition Mladen Victor Wickerhauser

https://ebookbell.com/product/introducing-financial-mathematics-
theory-binomial-models-and-applications-chapman-and-hallcrc-financial-
mathematics-series-1st-edition-mladen-victor-wickerhauser-44875460

Introducing Anthropology Laura Pountney Tomislav Maric

https://ebookbell.com/product/introducing-anthropology-laura-pountney-
tomislav-maric-46096168

Introducing Philosophy For Canadians A Text With Integrative Readings


1st Edition Robert C Solomon

https://ebookbell.com/product/introducing-philosophy-for-canadians-a-
text-with-integrative-readings-1st-edition-robert-c-solomon-46248138

Introducing Bronfenbrenner A Guide For Practitioners And Students In


Early Years Education 2nd Edition Nirn Hayes

https://ebookbell.com/product/introducing-bronfenbrenner-a-guide-for-
practitioners-and-students-in-early-years-education-2nd-edition-nirn-
hayes-46496164

Introducing Micronaut Build Test And Deploy Java Microservices On


Oracle Cloud 1st Edition Todd Raymond Sharp

https://ebookbell.com/product/introducing-micronaut-build-test-and-
deploy-java-microservices-on-oracle-cloud-1st-edition-todd-raymond-
sharp-46518710
Introducing
Algorithms in C
A Step by Step Guide to
Algorithms in C

Luciano Manelli
Introducing
Algorithms in C
A Step by Step Guide
to Algorithms in C

Luciano Manelli
Introducing Algorithms in C: A Step by Step Guide to Algorithms in C
Luciano Manelli
Taranto, Italy

ISBN-13 (pbk): 978-1-4842-5622-0 ISBN-13 (electronic): 978-1-4842-5623-7


https://doi.org/10.1007/978-1-4842-5623-7

Copyright © 2020 by Luciano Manelli


This work is subject to copyright. All rights are reserved by the Publisher, whether the whole
or part of the material is concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical
way, and transmission or information storage and retrieval, electronic adaptation, computer
software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a
trademark symbol with every occurrence of a trademarked name, logo, or image we use the
names, logos, and images only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms,
even if they are not identified as such, is not to be taken as an expression of opinion as to
whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the
date of publication, neither the authors nor the editors nor the publisher can accept any
legal responsibility for any errors or omissions that may be made. The publisher makes no
warranty, express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Steve Anglin
Development Editor: Matthew Moodie
Coordinating Editor: Mark Powers
Cover designed by eStudioCalamar
Cover image designed by Freepik (www.freepik.com)
Distributed to the book trade worldwide by Apress Media, LLC, 1 New York Plaza, New York,
NY 10004, U.S.A. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-
sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the
sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance
Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail [email protected]; for reprint,
paperback, or audio rights, please email [email protected].
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our
Print and eBook Bulk Sales web page at www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is
available to readers on GitHub via the book's product page, located at www.apress.com/
9781484256220. For more detailed information, please visit www.apress.com/source-code.
Printed on acid-free paper
To my daughter, Sara

To my son, Marco
To my mum, Anna
Table of Contents
About the Author���������������������������������������������������������������������������������ix
About the Technical Reviewer�������������������������������������������������������������xi
Introduction���������������������������������������������������������������������������������������xiii

Chapter 1: Data Structures�������������������������������������������������������������������1


Variables and Constants���������������������������������������������������������������������������������������1
Primitive Types������������������������������������������������������������������������������������������������������4
Structured Types���������������������������������������������������������������������������������������������������5
Array����������������������������������������������������������������������������������������������������������������5
Linked Lists�����������������������������������������������������������������������������������������������������6
Stack���������������������������������������������������������������������������������������������������������������9
Queue������������������������������������������������������������������������������������������������������������10
Graph�������������������������������������������������������������������������������������������������������������10
Tree����������������������������������������������������������������������������������������������������������������11
Hash Table�����������������������������������������������������������������������������������������������������11
Record�����������������������������������������������������������������������������������������������������������12
File�����������������������������������������������������������������������������������������������������������������12

Chapter 2: Design of Algorithms���������������������������������������������������������13


Algorithm Basics�������������������������������������������������������������������������������������������������14
Flow Chart and Structured Programming�����������������������������������������������������������16
repeat and while��������������������������������������������������������������������������������������������20
for������������������������������������������������������������������������������������������������������������������23

v
Table of Contents

The Algorithms����������������������������������������������������������������������������������������������������24
Sum of Three Numbers����������������������������������������������������������������������������������24
Sum of n Numbers in a Loop�������������������������������������������������������������������������25
Storing Numbers Within an Array������������������������������������������������������������������27
Array Exercise�����������������������������������������������������������������������������������������������30
Converting a Decimal Number to a Binary Number���������������������������������������32
Maximum/Minimum Search��������������������������������������������������������������������������36
Searching Problem����������������������������������������������������������������������������������������38
Sorting Problem���������������������������������������������������������������������������������������������46
Merging of Two Sorted Arrays�����������������������������������������������������������������������55
Reading Chars from a Text File����������������������������������������������������������������������58
Functions and Subprograms�������������������������������������������������������������������������59
Recursion������������������������������������������������������������������������������������������������������63

Chapter 3: Implementation of Algorithms in the C Programming


Language��������������������������������������������������������������������������������������������69
C Code Fundamentals�����������������������������������������������������������������������������������������70
Fundamental/Primitive Types������������������������������������������������������������������������71
Derived Types������������������������������������������������������������������������������������������������71
The Type void�������������������������������������������������������������������������������������������������72
Variable Declaration��������������������������������������������������������������������������������������73
Boolean����������������������������������������������������������������������������������������������������������73
Arithmetic Operators�������������������������������������������������������������������������������������73
Relational Operators��������������������������������������������������������������������������������������74
Functions�������������������������������������������������������������������������������������������������������74
Library Functions�������������������������������������������������������������������������������������������75
Statements����������������������������������������������������������������������������������������������������76
Dev-C++ Environment����������������������������������������������������������������������������������������79
C Programs���������������������������������������������������������������������������������������������������������81

vi
Table of Contents

Sum of Three Numbers����������������������������������������������������������������������������������81


Sum of n Numbers in a Loop�������������������������������������������������������������������������84
Storing Numbers Within an Array������������������������������������������������������������������92
Array Exercise�����������������������������������������������������������������������������������������������94
Converting a Decimal Number to a Binary Number���������������������������������������96
Maximum/Minimum Search������������������������������������������������������������������������100
Linear/Sequential Search����������������������������������������������������������������������������102
Binary Search����������������������������������������������������������������������������������������������104
Bubble Sort��������������������������������������������������������������������������������������������������107
Selection Sort����������������������������������������������������������������������������������������������109
Merging of Two Sorted Arrays���������������������������������������������������������������������114
Functions and Subprograms�����������������������������������������������������������������������117
Working with a Text File������������������������������������������������������������������������������121
Working with a Stack����������������������������������������������������������������������������������122
Recursive Algorithm: Factorial Function������������������������������������������������������129
Recursive Algorithm: Fibonacci Sequence��������������������������������������������������131
An Introduction to Algorithmic Complexity��������������������������������������������������134

Index�������������������������������������������������������������������������������������������������143

vii
About the Author
Luciano Manelli was born in Taranto (Italy),
where he currently resides with his family.
He graduated in electronic engineering at the
Polytechnic of Bari at 24 years of age, and then
he served as an officer in the Navy. In 2012, he
received a PhD in computer science from the
Department of Informatics, University of Bari
Aldo Moro.
He is a contract professor at the
Polytechnic of Bari and at the University of Bari Aldo Moro. He is a
professionally certified engineer, an innovation manager, and the author
of several IT technical books for different publishers. In 2014 he started
working for the Port Network Authority of the Ionian Sea – Port of Taranto,
after working for 13 years for InfoCamere SCpA as a software developer.
You can find out more at his LinkedIn page: it.linkedin.com/in/
lucianomanelli.

ix
About the Technical Reviewer
Michael Thomas has worked in software
development for more than 20 years as an
individual contributor, team lead, program
manager, and vice president of engineering.
Michael has more than 10 years of experience
working with mobile devices. His current focus
is in the medical sector, using mobile devices
to accelerate information transfer between
patients and healthcare providers.

xi
Introduction
This book serves as a starting point for anyone who is beginning their
study of computer science and information systems. Algorithms play
an important role in programming, and they can be considered the
cornerstone of computer science, because computer programs would
not exist without algorithms. In fact, understanding a problem and
getting a solution is a fundamental condition for software development
and problem-solving strategies. Therefore, the aim of this book is to
explain algorithms in different ways and then teach you how to analyze
new algorithms. In this book, we will use the C language to verify the
correctness of the algorithms.
Chapter 1 introduces data types (simple and structured), and
Chapter 2 defines the algorithms and flowcharts with graphical and
textual explanations. We’ll look at simple and complex standard
algorithms, as well as their flowcharts. Everything is integrated with
explanations, schemas, and tables to show the step-by-step evolution of
the algorithms.
The main analyzed algorithms are the following: the sum of three or n
numbers in a loop, the decimal to binary conversion, the maximum and
minimum search, the linear/sequential search, the binary search, the
bubble sort, the selection sort, the merging of two sorted arrays, and the
reading chars from file algorithm, stack management, and the recursive
algorithm (factorial and Fibonacci sequence).
The last chapter is devoted to the introduction of the C language and
the implementation of code related to the algorithms in this book. Many C
programs are explained.

xiii
CHAPTER 1

Data Structures
The study of algorithms is connected to data structures. A data structure
is a way to store data to facilitate organization and modifications. Every
data structure is used for a specific purpose, so it is important to know the
characteristics of several of them so you can choose the data structures
that are appropriate for the operations performed by an algorithm.

V
 ariables and Constants
A variable represents a memory location that stores an assigned value.
Each variable is associated with a data type and stores one or some values.
Variables can change their value during program execution, but they
cannot change their structure or their data type. A variable is characterized
by three elements.

• Name: A variable’s name must be unique and inherent


to the programming context, mainly to avoid ambiguity
in the program.

• Type: A variable’s type indicates whether the variable


is an integer, a float, a character, and so on. Each type
allocates different space in central memory.

• Content: A variable’s content is the value assigned to


the variable in a step of the program execution.

© Luciano Manelli 2020 1


L. Manelli, Introducing Algorithms in C, https://doi.org/10.1007/978-1-4842-5623-7_1
Chapter 1 Data Structures

Furthermore, the most important operators are assignment and


comparison.

• Assignment: The symbol = (a single equal sign) assigns


a value to a variable.
• Test for equality: The symbol == (two equal signs)
compares the values of two variables (an expression
with a final value of true or false).

For example, if we wanted to assign the value 4 to the variable a and


the value 5 to the variable b, we would write the following:

a=4;
b=5;

For example, if we wanted to compare a and b, we would write the


following:

a==b;

Note that C and Java programs use this notation.


For example, if we wanted to sum two variables (a and b) and we
wanted to store the result of this operation in the variable SUM, we would
write the following:

SUM = a+b;

In some cases, we might be interested in the iterative sum of a set of


values for an algorithm. For example, if we wanted to know the sum of
some integer values, we could use an intermediate variable and write the
following:

intermediate_sum = final_sum + new_value;


final_sum = intermediate_sum;

2
Chapter 1 Data Structures

We could also write in a compact form, without using an intermediate


variable, as shown here:

final_sum = final_sum + new_value;

In computer science, we can add the new_value to the content of the


variable final_sum and store the result in the same variable, final_sum.
Reading the formula from left to right, the first variable final_sum
indicates the new value of the sum, the second variable indicates the value
currently stored in the variable final_sum, and the third variable indicates
a new value (new_value) that has to be added to the current variable
final_sum.

final_sum = final_sum + new_value;

New value of Current value of New value to


variable sum variable sum add to sum

In some cases, we are interested in the use of a counter, such as an


index i that increases its value at each step of an algorithm. For example,
consider an integer index named i that is incremented by 1 at each step.
This condition is expressed in the following formula:

i = i + 1;

New value of Current value of Constant value to


index i index i add to the index i

3
Chapter 1 Data Structures

Reading the formula from left to right, the first index i indicates the
new value of the counter, the second variable indicates the value currently
stored in the counter i, and the third variable indicates a new value (1) that
has to be added to the current variable i.
Constants are similar to variables, but they cannot change their value
during program execution. They also usually have a different type of
declaration in the program. For example, if we wanted to assign an integer
value (4) to the constant const in the C language, we would write the
following:

#define CONST = 4

Once a constant is defined, it cannot be modified by the program.

Primitive Types
It is possible to define the following primitive types:

• Numeric: This type includes integers (numbers without


decimal points) and floats (numbers with a decimal
after a decimal point). They are stored differently in
memory and have different scopes. A float is usually
declared when more precision is needed.

• Character: The character type includes letters


and dots.

• Boolean (true and false): Booleans usually are used to


compare variable values. The comparison can be either
true or false.

4
Chapter 1 Data Structures

Structured Types
To represent data in other ways, it is possible to define structured types.
The following are the basic structuring methods presented in this chapter:

• Array

• Linked list

• Queue

• Stack

• Graph

• Tree

• Hash table

• Record

• File

Array
One of the most important elementary data structures is the array. An
array is a sequence of n items of the same data type stored contiguously
in computer memory. An array is accessible by specifying a value of the
array’s index (an integer between 0 and n – 1, where n is the length of the
array).
So, an array is characterized by the following:

• Name (for example, a)

• Length (n)

• Elements of the array accessible by index i

5
Chapter 1 Data Structures

For example, to create an array a of six integer elements (4, 1, 34, 56, 7, 0),
we would write the following:

a (0) = 4;
a (1) = 1;
a (2) = 34;
a (3) = 56;
a (4) = 7;
a (5) = 0;

In graphical form, we would write it as follows :

4 1 34 56 7 0

i=0 i=1 i=2 i=3 i=4 i=5

Arrays are used to implement a variety of other data structures.


The most important is the string, a sequence of characters from the
alphabet (for example, the word Luciano is a string of seven characters).
Furthermore, it is possible to combine arrays and define multidimensional
arrays (in other words, matrixes). Each element of an array can be
accessed in the same amount of time, and this feature distinguishes arrays
from linked lists, discussed next.

Linked Lists
Another important elementary data structure is the linked list (a one-­
dimensional, or singly linked, list). A linked list is a data structure in which
the elements are arranged in a sequence of zero or more elements called
nodes. Each element contains two kinds of information.

• Data (or key): The value.

• Pointer: The variable that stores the address where


another node of the list resides, in other words, a link

6
Random documents with unrelated
content Scribd suggests to you:
But with all their distinguished merits in these branches of poetic
literature, they laid no claims to recognition, nor shall we claim it for
them. Their aspiration was higher. Their lay was sacred. Their ideal
of poetic grandeur was the writing and singing of majestic hymns,
and they have given us a hymnology, a collection of pure and sacred
songs, that has never yet been equalled. We know not what rational
religious fervor is, we know not what real piety is, we know not what
joyful ectasy is, nor what tearful and penitent tenderness means, we
know not what trust in, and love of God is, we know not what it is to
hear the heart speak to and of God, and the soul sing her Maker's
praise, we know not what passionate devotion to, and deathless love
for, Israel's cause, for the memory of her glorious past and for the
hopes of her future is, we know not what all these are and mean,
until we have read some of the hymns and sacred odes and elegies
and meditations of the Jewish poets of Spain. Turn to your "Day of
Atonement" services; read there the inexpressibly beautiful
contributions to sacred poetic literature by Rabbi Solomon ben
Jehuda Gabirol, or Rabbi Joseph ben Ibn Abitur, or Rabbi Bechai ben
Joseph, or Rabbi Moses ben Esra, or the greatest of them all Rabbi
Jehuda ben Samuel Ha-Levi, and answer it, where have you seen
and where have you read or heard, anything that will bear
comparison, with their religious poetry? Let us see the following
from Gabirol:

MEDITATIONS.
Forget thine anguish,
Vexed heart, again,
Why should'st thou languish,
With earthly pain?
The husk shall slumber,
Bedded in clay,
Silent and sombre,
Oblivion's prey!
But, Spirit immortal,
Thou at Death's portal,
Tremblest with fear.
If he caress thee,
Curse thee or bless thee,
Thou must draw near,
From him the worth of thy works to hear.

Why full of terror,


Compassed with error,
Trouble thy heart,
For thy mortal part?
The soul flies home—
The corpse is dumb.
Of all thou didst have,
Follows naught to the grave.
Thou fliest thy nest,
Swift as a bird to thy place of rest.

What avail grief and fasting,


Where nothing is lasting?
Pomp, domination,
Become tribulation.
In a health-giving draught,
A death-dealing shaft.
Wealth—an illusion,
ea t a us o ,
Power—a lie,
Over all, dissolution
Creeps silent and sly.
Unto others remain
The goods thou didst gain
With infinite pain.

Life is a vine-branch;
A vintager, death.
He threatens and lowers
More near with each breath.
Then hasten, arise!
Seek God, oh my soul!
For time quickly flies,
Still far is the goal.
Vain heart praying dumbly,
Learn to prize humbly,
The meanest of fare.
Forget all thy sorrow,
Behold, Death is there!

Dove-like lamenting,
Be full of repenting,
Lift vision supernal
To raptures eternal.
On every occasion
Seek lasting salvation.
Pour out thy heart in weeping,
While others are sleeping.
Pray to Him when all's still,
Performing His will.
And so shall the angel of peace be thy warden,
And guide thee at last to the heavenly garden.
HYMN.
Almighty! what is man?
But flesh and blood.
Like shadows flee his days,
He marks not how they vanish from his gaze.
Suddenly, he must die—
He droppeth, stunned, into nonentity.

Almighty! what is man?


A body frail and weak,
Full of deceit and lies,
Of vile hypocrisies.
Now like a flower blowing,
Now scorched by sunbeams glowing.
And wilt thou of his trespasses inquire?
How may he ever bear
Thine anger just, thy vengeance dire?
Punish him not, but spare,
For he is void of power and strength!

Almighty! what is man?


By filthy lust possessed.
Whirled in a round of lies,
Fond frenzy swells his breast.
The pure man sinks in mire and slime,
The noble shrinketh not from crime,
Wilt thou resent on him the charms of sin?
Like fading grass,
So shall he pass.
Like chaff that blows
Where the wind goes.
Then spare him, be thou merciful, O King,
Upon the dreaded day of reckoning!
Almighty! what is man?
The haughty son of time
Drinks deep of sin,
And feeds on crime
Seething like waves that roll,
Hot as a glowing coal.
And wilt thou punish him for sins inborn?
Lost and forlorn,
Then like the weakling he must fall,
Who some great hero strives withal.
Oh, spare him, therefore! let him win
Grace for his sin!

Almighty! what is man?


Spotted in guilty wise,
A stranger unto faith,
Whose tongue is stained with lies,
And shalt thou count his sins—so is he lost,
Uprooted by thy breath.
Like to a stream by tempest tossed,
His life falls from him like a cloak,
He passes into nothingness, like smoke.
Then spare him, punish not, be kind, I pray,
To him who dwelleth in the dust, an image wrought in clay!

Almighty! what is man?


A withered bough!
When he is awestruck by approaching doom.
Like a dried blade of grass, so weak, so low,
The pleasure of his life is changed to gloom.
He crumbles like a garment spoiled with moth;
According to his sins wilt thou be wroth?
He melts like wax before the candle's breath,
Yea, like thin water, so he vanisheth,
Oh, spare him, therefore for thy gracious name,
O , spa e , t e e o e o t y g ac ous a e,
And be not too severe upon his shame!

Almighty! what is man?


A faded leaf!
If thou dost weigh him in the balance—lo!
He disappears—a breath that thou dost blow.
His heart is ever filled
With lust of lies unstilled.
Wilt bear in mind in his crime
Unto all time?
He fades away like clouds sun-kissed,
Dissolves like mist.
Then spare him! let him love and mercy win,
According to thy grace, and not according to his sin!

Or this of Moses ben Esra.

IN THE NIGHT.
Unto the house of prayer my spirit yearns,
Unto the sources of her beings turns,
To where the sacred light of heaven burns,
She struggles thitherward by day and night.

The splendor of God's glory blinds her eyes,


Up without wings she soareth to the skies,
With silent aspiration seeks to rise,
In dusky evening and in darksome night.

To her the wonders of God's works appear,


She longs with fervor Him to draw anear,
The tidings of His glory reach her ear,
From morn to even, and from night to night.

The banner of thy grace did o'er me rest,


Yet was thy worship banished from my breast.
Almighty, thou didst seek me out and test
To try and to instruct me in the night.

I dare not idly on my pillow lie,


With winged feet to the shrine I fain would fly,
When chained by leaden slumbers heavily,
Men rest in imaged shadows, dreams of night.

Infatuate I trifled youth away,


In nothingness dreamed through my manhood's day.
Therefore my streaming tears I may not stay,
They are my meat and drink by day and night.

In flesh imprisoned is the son of light,


This life is but a bridge when seen aright,
Rise in the silent hour and pray with might,
Awake and call upon thy God by night!

Hasten to cleanse thyself of sin, arise!


Follow Truth's path that leads unto the skies,
As swift as yesterday existence flies,
Brief even as a watch within the night.

Man enters life for trouble; all he has,


And all that he beholds, is pain, alas!
Like to a flower does he bloom and pass,
He fadeth like a vision of the night.

The surging floods of life around him roar,


Death feeds upon him, pity is no more,
To others all his riches he gives o'er,
And dieth in the middle hour of night.

Crushed by the burden of my sins I pray,


Oh, wherefore shunned I not the evil way?
Deep are my sighs, I weep the livelong day,
And wet my couch with tears night after night.

My spirit stirs, my streaming tears still run,


Like to the wild bird's notes my sorrows' tone,
In the hushed silence loud resounds my groan,
My soul arises moaning in the night.

Within her narrow cell oppressed with dread,


Bare of adornement and with grief-bowed head
Lamenting, many a tear her sad eyes shed,
She weeps with anguish in the gloomy night.

For tears my burden seem to lighten best,


Could I but weep my hearts blood, I might rest.
My spirit bows with mighty grief oppressed,
I utter forth my prayer within the night.

Youth's charm has like a fleeting shadow gone,


With eagle wings the hours of life have flown.
Alas! the time when pleasure I have known.
I may not now recall by day or night.

The haughty scorn pursues me of my foe,


Evil his thought, yet soft his speech and low.
Forget it not, But bear his purpose so
Forever in thy mind by day and night.

Observe a pious fast, be whole again,


Hasten to purge thy heart of every stain.
No more from prayer and penitence refrain,
But turn unto thy god by day and night.

He speaks: "My son, yea, I will send thee aid,


Bend thou thy steps to me, be not afraid.
No nearer friend than I am, hast thou made,
Possess thy soul in patience one more night."

Read the following stanzas culled from Ha-Levi's "Elegy on Zion" and
ask yourselves, where is the sacred epic that will compare with it?
ON THE VOYAGE TO JERUSALEM.
I.

My two-score years and ten are over,


Never again shall youth be mine.
The years are ready-winged for flying,
What crav'st thou still of feast and wine?
Wilt thou still court man's acclamation,
Forgetting what the Lord hath said?
And forfeiting thy weal eternal,
By thine own guilty heart misled?
Shalt thou have never done with folly,
Still fresh and new must it arise?
Oh heed it not, heed not the senses,
But follow God, be meek and wise:
Yea, profit by thy days remaining,
They hurry swiftly to the goal.
Be zealous in the Lord's high service,
And banish falsehood from thy soul.
Use all thy strength, use all thy fervor,
Defy thine own desires, awaken!
Be not afraid when seas are foaming,
And earth to her foundations shaken.
Benumbed the hand then of the sailor,
The captain's skill and power are lamed.
Gaily they sailed with colors flying,
And now turn home again ashamed.
The ocean is our only refuge,
The sandbank is our only goal,
The masts are swaying as with terror,
And quivering does the vessel roll.
The mad wind frolics with the billows,
Now smooths them low, now lashes high.
Now they are storming up like lions,
And now like serpents sleek they lie:
And wave on wave is ever pressing,
Th hi th hi ft f t
They hiss, they whisper, soft of tone.
Alack! was that the vessel splitting?
Are sail and mast and rudder gone?
Here, screams of fright, there, silent weeping.
The bravest feels his courage fail,
What stead our prudence or our wisdom?
The soul itself can naught avail.
And each one to his God is crying,
Soar up, my soul, to Him aspire,
Who wrought a miracle for Jordan,
Extol Him, oh angelic choir!
Remember Him who stays the tempest,
The stormy billows doth control,
Who quickeneth the lifeless body,
And fills the empty frame with soul.
Behold! once more appears a wonder,
The angry waves erst raging wild,
Like quiet flocks of sheep reposing,
So soft, so still, so gently mild.
The sun descends, and high in heaven,
The golden-circled moon doth stand.
Within the sea the stars are straying,
Like wanderers in an unknown land.
The lights celestial in the waters
Are flaming clearly as above,
As though the very heavens descended,
To seal a covenant of love.
Perchance both sea and sky, twin oceans,
From the same source of grace are sprung.
'Twixt these my heart, a third sea, surges,
With songs resounding, clearly sung.

II.

A watery waste the sinful world has grown,


With no dry spot whereon the eye can rest,
t o d y spot e eo t e eye ca est,
No man, no beast, no bird to gaze upon,
Can all be dead, with silent sleep possessed?
Oh, how I long the hills and vales to see,
To find myself on barren steppes were bliss.
I peer about, but nothing greeteth me,
Naught save the ship, the clouds, the waves' abyss,
The crocodile which rushes from the deeps;
The flood foams gray; the whirling waters reel,
Now like its prey whereon at last it sweeps,
The ocean swallows up the vessel's keel.
The billows rage—exult, oh soul of mine,
Soon shall thou enter the Lord's sacred shrine!

ISRAEL, THE DOVE.[30]


I.

Thy undefiled dove,


Thy fondling, Thy love,
That once had, all blest,
In Thy bosom her nest—
Why dost Thou forsake her
Alone in the forest?
And standest aloof,
When her need is the sorest?
While everywhere
Threatens snare;
Strangers stand around her,
And strive night and day
To lead her astray,
While in silence she,
In the dead of night,
Looks up to Thee,
Her sole delight.
Dost Thou not hear,
Her voice sweet and clear:
Wilt aye thou forsake me?
"My darling, my One!
And I know that beside Thee,
Redeemer, there's none!"

II.

How long will Thy dove


Thus restlessly rove
In the desert so wild,
Mocked and reviled?
And the maid-servant's son
Came furiously on,
Dart after dart.
a t a te da t
Pierced through my heart,
Horrid birds of prey
Lie soft in my nest,
While I, without rest,
Roam far, far away.
And still I am waiting
And contemplating;
And counting the days,
And counting the years;
The miracles ceased
No prophet appears;
And wishing to learn
About Thy return.
And asking my sages:
"Is the end drawing nigh?"
They sadly reply:
"That day and that hour
But to him are known.
And I know that beside Thee,
Redeemer, there's none!"

III.

And my wee, cooing dear ones,


The bright and the clear ones,
Were dragged in their slumbers
By infinite numbers
Of vultures so horrid
To cold climes and torrid,
Far, far away.
And those birds of prey
Try to render them faithless,
And make them give up
Thee, their sole Hope!
To turn their affection
F Th O P f ti !
From Thee, O Perfection!
Thou Friend of the Friendless!
Thou Beauty endless!
Ah, where art thou?
My Darling, My One!
My foes are near,
My Friend is gone.
Fainting in sorrow,
I'm here all alone.
And I know that beside Thee,
Redeemer, there's none!

IV.

Oh, hasten, my Love,


To Thy poor, timid dove!
They trample with their feet me,
They laugh when I mourn;
There's no friend to greet me,
I am all forlorn!
My foes in their passion,
And wild frantic ire,
Employ sword and fire,
And all kinds of tortures,
And know no compassion
They drive from land to land me:
There's none to befriend me.
The stars there on high
Hear me silently moan.
And I know that beside Thee,
Redeemer, there's none!

V.

Didst Thou reject me?


D tl ?
Dost love me no more?
Didst Thou forget all
Thy promises of yore?
Oh, rend Thy heavens!
Oh, come down again!
My enemies may see
That I, not in vain,
Have trusted in Thee.
As once upon Sinai,
Come down, my sole Dear
In Thy majesty appear!
Hurl down from his throne,
The maid-servant's son!
And strength impart
To my fainting heart,
Ere sadly I wander
To the land unknown.
For I know that beside Thee,
Redeemer, there's none!

Noble Ha-Levi, poet by the grace of God humbly we implore thy


pardon for so feebly speaking of thee and thy glorious work! Would
that we had the gift to speak of thee as thou deservest. Fill us thou
sweet singer of Israel, with poetic instinct, and fill us, too, with thy
religious zeal and fervor. Fill us with such a love for Israel and her
cause, that we too might as thou didst toil for the of our people and
our God.[31]
"Oh! city of the world, most chastely fair;
In the far west, behold I sigh for thee,
And in my yearning love I do bethink me
Of bygone ages; of thy ruined fame,
Thy vanished splendor of a vanished day.
Oh! had I eagles' wings I'd fly to thee,
And with my falling tears make moist thine earth.
I long for thee; though indeed thy kings
Have passed forever; what though where once uprose
Sweet balsam trees, the serpent makes his nest;
Oh! that I might embrace thy dust, the sod
Were sweet as honey to my fond desire."
CHAPTER. XIII.
IN PHILOSOPHY.

ALEXANDRIA, THE INTELLECTUAL METROPOLIS OF THE WORLD.—


A PRODIGIOUS STIMULUS GIVEN TO LEARNING.—THE
SEPTUAGINT.—DEVELOPMENT OF GRECIAN PHILOSOPHY INTO
ARISTOTLIANISM.—THIS ENGRAFTED ON JEWISH THEOLOGY.—
OPPOSITION OF CHRISTIANITY TO ARISTOTLIANISM.—AVERROES.
—MOSES MAIMONIDES.—OPPOSITION UNSUCCESSFUL.

We must devote some little space and time to a review of the place
the Moors and the Jews held in philosophy during their stay in Spain
from the eighth to the fifteenth century. The purpose of this work
makes this review necessary. Not that we shall see any wonderful
advance in this department of learning, nor that we need show the
glaring contrast between the sophistical cobwebs of the
cotemporaneous scholastics and the rational researches of the
Moorish and Jewish philosophers, but that we may see what a debt
of gratitude modern philosophy owes the Jew and Moor, for taking
up the thread of philosophical research where Greek intelligence had
been forced to leave it, and for carrying it forward sufficiently for
modern philosophy to build upon it, as a superstructure, the theories
and systems of to-day.
To fully understand their place in philosophy it is necessary for us to
retrace our steps in history some 2,000 years, and enter the city of
Alexandria. Here Alexander the Great had established his seat of
government. It became the intellectual metropolis of the world.
Thither the conqueror brought the wealth and learning of the globe.
Into that city the people streamed, or were brought as prisoners,
from the remotest corners of the known world, from the Danube to
the Nile, and from the Nile to the Ganges. For the first time in the
world's history, there could be found in one city, men who could
speak learnedly of the Borean blasts of the countries beyond the
Black Sea, and of the simoons of the Oriental deserts, of pyramids
and obelisks and sphinxes and hieroglyphics, of the Persian and
Assyrian and Babylonian wonders, of the Chaldean astronomers, of
hanging gardens, aqueducts, hydraulic machinery, tunnels under the
river-bed, or of the Assyrian method of printing, on plastic clay. For
the first time in the world's history seekers after knowledge could
listen, in the Serapion of Alexandria, to learned discussions between
Jewish monotheists and Persian dualists and Grecian polytheists and
Egyptian mysticists and Indian Brahmanists and Buddhists, and
between the Ionics and Pythagoreans, and Eleatics and the Atomists
and Anaxagoreans, and the Socratists, and Platonists and
Aristotelians and Stoics and Epicureans and Neo-Platonists. No age
or city had ever furnished better opportunities for intellectual
pursuits. No city could ever before this, point to kings more
enthusiastic for the promotion of learning than were her Ptolemys,
nor could all antiquity boast of a library equal to hers, or of a
museum as justly celebrated for its botanical gardens and
astronomical observatories and anatomical college and chemical
laboratory.
A prodigious stimulus was thus given to learning, and it has left its
impress upon the world's civilization. Here Euclid wrote the theorems
which are still studied by the college students of to day. Here
Archimedes studied mathematics under Conon. Here Eratosthones
made astronomy a science. Here Ptolemy wrote his "Syntaxes." Here
Ctesibius and Hero invented the steam engine. Here true philosophy
flourished, and for the first time, too, in the world's history. The
people of the Orient had dabbled in speculative thought before this,
but the results achieved showed that the Oriental mind is not
adapted to abstract reasoning. The luxurious habits and voluptuous
surroundings and tropical climate of the Orient tend more toward
poetry, music and love and languor than toward psychical
contemplations. The awe-awakening phenomena of nature, which
confront the Oriental everywhere, naturally lead him to accept as a
priori principles what the philosophers of the Occident make the
subject of endless, and for the most part, incomprehensible and
unsatisfactory systems of philosophy.
It is for this reason that the great religions of the world sprang from
Oriental soil, while the great philosophical systems took roots in
Western lands. Yet, up to this period, not even the West, with all its
labors, had sounded the depths of true philosophy. The entire pre-
Socratic philosophy wasted its energies upon the futile effort to find
some principle for the explanation of nature, which to the Hebrew
mind had been solved thousands of years before in the opening
verse of the Bible. One thought it to be water; another, air; and a
third an original chaotic matter. The Pythagoreans declared that
number is the essence of all things, and the Eleatics believed they
were nearer the truth by negating all division in space and time. The
Atomists endowed each atom with gravity and motion, and
accounted thus for the origin of all physical existences and states.
Socrates and Plato both came much nearer to the solution of the
problem; the former postulated self-knowledge as the starting point
of all philosophy, and the latter combined all preceding systems into
one scheme, with an infinitely wise and just and powerful spirit as its
guiding principle, but idealistically only. The additional realistic view
of things had not yet been reached, and could not be reached, for
that depends upon universal and exact and scientific knowledge,
which prior to the great age of Alexandrian learning, to which all
ages and climes and nations contributed their experiences and
observation and knowledge, had never yet existed. Aristotle, the
teacher of Alexander, and the friend of Ptolemy, thus found through
Alexandrian influence, opportunities for philosophical reasoning,
which necessarily gave his system an almost inestimable advantage
over his predecessors. From the study of particulars he rose to a
knowledge of universals, advancing to them by induction. This
inductive method was grounded upon facts of his own experience
and observation, as well as those of others, whom the intellectual
metropolis had sent into Greece. He became the first and best
absolute empiricist. His system acquired an encyclopedic character.
He became the father of logic, natural history, empirical psychology
and the science of rights. Aristotelian philosophy became the
intellectual corner stone on which the Museum rested, and is to-day,
through Jewish and Moorish influence, as we shall presently see, the
corner stone of modern philosophy.
The Jewish community of Alexandria was very large. When
Alexander founded this city and gave it his name, he wished to
secure for it permanent success, and so he brought them thither by
the thousands. Ptolemy brought 100,000 more, after his siege of
Jerusalem, and Philadelphus, his successor, redeemed from slavery
198,000 Jews, "paying their Egyptian owners a just money
equivalent for each." Alexander's expectations were realized; the city
of his name led the world in commerce and intellect. With an
enthusiasm almost bordering on passion the Hebrews devoted
themselves to philosophy, especially to Aristotelian philosophy. They
ingrafted it upon their own theology and philosophic speculations,
some going even so far as to believe that Aristotle must have been a
Jew himself.
Henceforth Aristotelian philosophy is Jewish philosophy. The
occasional acceptance of the Neo-Platonic mysticism, theosophy and
theurgy, was unable to obliterate it.
During seven centuries learning flourished in the city of Alexandria,
zealously fostered by native Egyptian, Greek and Jew. A new power
arose—Christianity. At once it recognized in Aristotelian philosophy
an inimical foe, and began its work of suppressing rational research
and free thought. The rest we need not relate. We know what
happens when Christianity institutes inquisitors of faith instead of
inquirers of learning. We know what happens when Christianity uses
power instead of argument. That day, when the beautiful and young
Hypatia, perhaps, the most accomplished woman that has ever lived,
the popular lecturer of Platonic and Aristotelian philosophy at the
Museum, where her lecture room was crowded daily, with the wealth
and intellect of Alexandria; that day, when this most noble of women
was assaulted by Bishop Cyril's fanatical and blood-thirsty monks,
when she was dragged by the followers of the "religion of love,"
from her chariot, stripped naked in the street, pulled into the church,
where she was cut to pieces—where her flesh was scraped from the
bones with a shell and the remnants cast into fire; that day marked
the extinction of Alexandrian learning—it marked the extinction of
Athenian learning. Science, so successful, died the death of
strangulation, and the expounders of Aristotelian philosophy were
silenced, and their literature condemned to the pyre.
But Aristotelian philosophy was not yet dead. The Jews still lived,
and with them the works of Aristotle. They had succeeded in
concealing translations and original copies of his works from the
fanatical champions of ignorance. They had absorbed it into their
system of thought. They had used it in their commentaries upon
their Scriptures. They had saturated their very prayers with it. They
had sought to reconcile Jewish theology with refined heathen
philosophy. Whither they wandered, it wandered, and where they
were permitted to study there also was Aristotelian philosophy
studied. What they had long wished was granted them at last. They
became the restorers of philosophy in Europe. Moorish and Spanish
prosperity afforded them the opportunities for an uninterrupted
study and development of the Aristotelian philosophy. Soon the Moor
shared their enthusiasm. The caliphs sent special messengers to
secure whatever of Aristotelian philosophy had escaped the mob of
"St. Cyril."[32]
Many were they, both Jews and Moors, who devoted themselves to
this philosophy, and vast the systems they unfolded. The wonderful
advance they had made in the sciences, and in the other branches of
learning, enabled them to enlarge upon the teachings of Aristotle.
New facts and new experiences and new observations led them to
new and advanced inductions. However great the temptations be to
enter into some analysis of their philosophical system, we must not
yield to them; that is not the object of this review. Our design is to
show what influence Moorish and Jewish learning exercised upon
European civilization. We have seen its impress upon the sciences
and literatures of Europe, and its impress is visible still on modern
philosophy.[33] From all parts of the world persons having a taste for
philosophy found their way to the Moorish and Jewish sages of
Spain. Gerbet himself, later Pope Sylvester II., had repaired to
Cordova and Seville to hear Moorish and Jewish philosophers
expound the mysteries of wisdom and philosophy, and so illustrious
an example soon became the raging fashion among European
scholars. As if desirous of dividing the honors equally, both the
Moors and the Jews sent at the same time, a representative
champion into the philosophical arena who, by their united labors,
not only demolished scholasticism but also laid the permanent
foundation of modern philosophy. The representative philosopher of
the Moors was the great Averroes (Ibn Roshd, 1149-1198) whose
name still occupies an honored place upon the pages of history of
philosophy, and whose system, bearing his name—Averroism—is still
recognized among the philosophical systems of the world. The
representative Jewish philosopher was the great Moses Maimonides,
(1135-1204) the greatest Jewish philosopher the Jews have ever
produced, and one of the greatest the world has seen to this day,
whose philosophical system, unfolded in his "More Nebuchim,"
("Guide for the Perplexed") still remains truly, grandly immortal.
For several centuries the Moorish and Jewish philosophy was the
delight of such men in whom Spanish learning kindled a desire for
deeper research and loftier thought than Europe had hitherto
offered. Even many of the schoolmen shared this enthusiasm. But
this very enthusiasm was the deathblow to scholasticism. Once
imbued with Moorish and Jewish empirical philosophy and inductive
reasoning, the rational mind could no longer pursue the sophistic
teachings which the church held up as the divine wisdom. That
philosophy shook the old faith to its very root, produced new
predispositions and prepared the way for the coming change. It
weaned men from simply believing the church's "say-so" and taught
them to think, and when men began to think scholasticism ceased,
and the Reformation began, and with it modern thought. No longer
would the rational mind believe that legends and miracles can decide
such questions as are the starting point of philosophic thought. No
longer would they endure the preposterous teaching—the product of
ignorance and audacity—that the faith of the church is absolute
truth; that faith is greater than knowledge; that a thing may be
theologically true even though it be philosophically false. No longer
would they disgrace themselves with continuing to waste time and
parchment with discussions and treatises such as these, to which the
schoolmen of several centuries devoted hundreds of volumes: "How
many choirs of angels are there in heaven, how do they sit and upon
what instrument do they play?" "To what temperature does the heat
rise in hell?" "Wherein lies the difference between 'consubstantiatio
and transubstantiato'?" "What kind of feathers had the angel Gabriel
in his wings? What kind of a swallow it was that caused Tobias'
blindness? Whether Pilate washed his hands with soap before he
condemned Jesus? Whether it was an adagio or allegro which David
played before Saul? What sort of salve it was which Mary brought to
the Lord? Whether the coat for which the soldiers cast lots
constituted the entire raiment of the Redeemer? Whether the valley
of Jehosophat is large enough for the world's judgment day?" and so
on ad nauseam. A schism arose. The indignation of St. Thomas
Aquinas, the leader of the Dominicans, knew no bounds when he
beheld Christians drinking in, in full draughts, Moorish and Jewish
philosophy. The Franciscans opposed him and every effort of his to
suppress their writings. The conflict lasted till 1512, when the
Lateran council condemned "the abettors of these detestable
doctrines to be held as heretics and infidels," and the Dominicans,
armed with the weapons of the Inquisition, were not slow to silence
Averoism in Europe.
But though silenced it lived in Jewish philosophy, and that, as little
as its Talmud and Bible no power on earth has ever been strong
enough to silence. Though silenced, with the aid of the Jews it
flashed forth to all parts of Europe, where it found its way as readily
into the "Opus Majus" of Roger Bacon as into the curriculum of
studies of the University of Padua. Though silenced, it permeated
the Renaissance. Though silenced, it formed the groundwork of
Spinoza's system. Though silenced, with the aid of the Jewish
philosophers, who laughed the Inquisition to scorn, it was studied
everywhere, and everywhere it assumed those gigantic proportions
destined to illumine the intellect of Europe. Though silenced, with
the aid of the Jewish philosophy, it ushered in modern philosophy
and the civilization of to-day.
CHAPTER. XIV.
IN THE INDUSTRIES.

INTELLECTUAL GREATNESS OF MOORS AND JEWS INDUCED BY


THEIR MATERIAL PROSPERITY—REMARKABLE DEVELOPMENT OF
AGRICULTURE—NEW DISCOVERIES IN EVERY INDUSTRY—MINING
A SPECIALTY—THE MAGNET. MARINER'S COMPASS MECHANICAL
APPARATUS. SPREAD OF COMMERCE LEADS TO GENERAL
AWAKENING OF EUROPE THAT ENDS MIDDLE AGES.

Hark! Again the doleful knell is tolling. With greater speed and in
larger numbers the people are hurrying to the public square. The
procession of priests, chanting hymns of victory and imprecatory
prayers, is starting towards the auto-da-fe. The victims supplicate for
death more piteously than before. Hark! Again, and with greater
alarm, the agonized voice of civilization calls unto us: Haste ye, the
furnaces are heated! The pyres are prepared! The massive gates of
the gloomy inquisition dungeons are open. The instruments of
torture are ready for the cruel work of death. Haste ye, the moments
are few, gather whatever knowledge there still remains to be
collected concerning the wondrous achievements of the Jew and
Moor, as speedily as you can; tarry, and flame and sword and rack
and expulsion will hurl all knowledge of it into oblivion forever!
Let us heed the warning and briefly state what yet remains to be
told. You have 'ere this surmised what we are about to prove, the
imperishable monuments which the Moors and Jews have erected to
their name and fame in the arts and sciences, in literature and
philosophy bear witness, not only to their great intellectual wealth,
but also to vast material possessions. Wherever learning is zealously
fostered there wealth exists, and where wealth abounds, there
agriculture and commerce and industry must have had prior
existence.
Thus it was in Moorish Spain. Never before, nor ever since, did Spain
enjoy a prosperity equal to that which blessed her lands, when
Moorish and Jewish skill and diligence and enterprise made her, in
glaring contrast with the rest of Europe, the granary and the
industrial and the commercial center of the world. We have not yet
forgotten how, when in the introductory chapters of this volume, we
thought ourselves back some eight or ten centuries in the world's
history, and hastened across the wild Atlantic to learn of the
condition of Europe and her people, how spell-bound we stood, as
we suddenly beheld wonders and beauties in Spain, scarcely
equalled to-day in all Europe. And when we reflected upon the
present condition of Spain, among the poorest of all European
countries, its people proverbially indolent and ignorant, we had to
assure ourselves, again and again, that it was Spain, indeed, which
suddenly disclosed to us these unexpected, and still unequalled,
proofs of industry and learning and cultured taste. Nor have we yet
forgotten, when gliding upon the majestic Guadalquivir along fertile
valleys, and luxuriant fields and graceful groves, and fragrant parks,
and glittering palaces, and busy factories, and restless mines, we
passed out of Spain, and visited the other countries of Europe how
dreary and wretched and appalling the scenes were which met our
gaze everywhere. Scarcely a city anywhere. Nothing that could, even
with the broadest stretch of leniency, be designated as agriculture.
Everywhere pathless deserts and howling wastes, and death-
exhaling swamps. Wretched, windowless and chimneyless and
floorless hovels sheltered man and beast under the same roof.
Everywhere men with squalid beards, and women with hair unkempt
and matted with filth, and both clothed in garments of untanned
skin, that were kept on the body till they dropped in pieces of
themselves, a loathsome mass of vermin, stench and rags.
Everywhere beans and vetches and roots and bark of trees and
horseflesh furnished largely the means of supporting life. Nowhere
even a trace or semblance of industry. Everywhere the word
commerce an unintelligible term. Such was the condition of the rest
of Europe when Spain was basking in the sunshine of a most
wonderful state of prosperity under the skill and enterprise of the
Jew and the Moor.
From the very first both directed their attention to agriculture. The
fertile valleys and the luxuriant fields, and the vine-clad hills, and the
fruitful orchards, and the flowry meads and the sweet-scented
pasture lands of Palestine bear eloquent testimony to Jewish skill in
agriculture. The advice which the prophet Jeremiah had sent to the
Jewish captives of Babylon: "Build ye houses, and dwell in them, and
plant gardens and eat the fruits of them, ... and increase in your
captivity and not diminish. Seek the welfare of the city whither you
are carried as captives, and pray unto the Lord for it; for in the
welfare thereof shall ye prosper and have peace."[34] This excellent
advice the Jews applied to themselves, and faithfully followed,
wherever they lived in exile, and wherever they were suffered to
dwell in peace and promote the country's welfare. The Arab-Moors
were no less devoted to this noble pursuit. When their warfare was
over they beat their swords into plowshares, and their spears into
pruning knives. Their motto was: "He who planteth and soweth, and
maketh the earth bring forth fruit for man and beast, hath done
alms that shall be reckoned to him in heaven." These two races
devoted themselves to the cultivation of Spain with their hereditary
love for the occupation, and with the skillful application of the
experience, which they had gathered in other lands where they had
dwelled or where they had established their power. By them
agriculture in Spain was carried to a height, which until the invention
of machinery was not surpassed in Europe. As early as the tenth
century the revenue of agriculture of Moorish Spain alone amounted
to nearly $6,000,000, more than the entire revenue of all the rest of
Europe at that time. The ruins of their noble works for the irrigation
of the soil, their great treaties on irrigation and crops, and improved
breeds of cattle, on grafting and gardening, and their code of laws
regulating agriculture, which still exist, still attest their skill and
industry and put to shame the ignorance and indolence of their
Spanish successors. Many plants were introduced in Europe, and
successfully cultivated by them, which, after the expulsion of the
Jews and Moors, and the discovery of America, Spain lost and
neglected, such as rice and sugar cane (soukhar), as they called it,
saffron and mulberry trees, ginger, myrrh, bananas and dates. The
Spanish names of many plants show their origin, and some have
traveled even to us, such as the apricot, from "albaric aque," the
artichoke from "alca chofa" cotton from "al godon."[35] They gave
Xeres and Malaga their celebrated wine, which has maintained its
reputation to this day.
The mining industries, too, were zealously fostered by them. Spain
was and is a widely metalliferous country. Her hidden treasures were
known already to the Phœnicians, Carthagenians and Romans, and
were mined by them with great profit. The gold and silver of
Solomon's temple come through Hiram of Tyre from Tarshish, which
was Southern Spain. But the dark ages had set in and with them
Europe's universal sloth. When the Moors entered Spain the ancient
mines had been, for the most part, abandoned. They revived this
industry, and with a zeal which may best be told by the existence to-
day of 5,000 Moorish shafts—distinguished from the former by being
square instead of round—in one district (Jaen) alone gold was found
in large quantities, and it was one of their leading articles for
manufacture and export. They gave us the Arabic word "carat"
which we still use in speaking of the quality of gold. They opened
the inexhaustible vein of mercury which they worked with great
profit and with such skill, that it still forms the largest deposit in the
world, yielding still one-half of the quicksilver now in use, and being
a government monopoly, this one remnant of Moorish and Jewish
skill and industry, alone, still produces an annual revenue of
$1,250,000. In addition to these, lead, copper, iron, alum, red and
yellow ochre were mined in great quantity. Precious stones also were
in great abundance—the beryl, ruby, golden marcasite, agates,
garnets. Pearls were found on the coast near Barcelona. Building
stones, marbles, and jaspers of all colors, were uninterruptedly
quarried in the mountains.
The manufacturing industries kept pace in their success with that of
mining and agriculture. With the Jews a knowledge of silk culture
came into Europe, and with the assistance of Moorish skill it became
one of the leading industries and one of the most profitable exports.
All Europe, and the greater portions of Asia and Africa, looked to the
Jews and Moors of Spain for their fine fabrics of silk and cotton and
woolen, for all the wonders of the loom and the skilful and delicate
patterns of filigree work in gold and silver. The carpet manufacture
of the Moslems reached the excellence which it has maintained to
our own day.
They made glass out of a silicious clay and used it for fashioning
vessels, and also in glazing those beautiful tiles—for which Valencia
is still famous—called azulejos, which they employed in embelishing
floors and wainscoting. The best leather was made by the Jews and
Arab-Moors in Cordova, and hence Spanish leather is still called
Cordovan, which has given to English shoemakers their name of
"Cordwainers." The still celebrated "Morocco" leather—the secret of
its manufacture having been carried to Morocco, after their expulsion
from Spain,—speaks to this day of Moorish and Jewish skill in this
branch of industry. The "Toledo Blade," famous in the past and
famous still, the invention of, and the plentiful and lucrative
manufacture of cotton and linen paper, that blessed boon to
civilization, which alone made the printing press possible and
beneficial, the introduction of gunpowder and artillery, of the magnet
and the mariner's compass, of mechanical and scientific apparatus
and instruments, these and many more still speak in eloquent terms
of Moorish and Jewish industry in Spain, and, more eloquently still,
they tell the tale of Spanish ingratitude.[36]
This diligence and success in agriculture and in the industries made
commerce necessarily very active and lucrative. The ports swarmed
with vessels of traffic. The Jews and Moors of Spain maintained a
merchant marine of thousands of ships. They had their factories and
warehouses and consuls in all centers of industry. Their exports were
very large.
The Jews, who had been compelled to wander the wide world over
had acquired a most perfect geographical knowledge, which was
serviceable to them now. It was through them that the existence of
the Cape of Good Hope was made known in Europe. It was through
Averroes that the attention of Columbus was drawn to his subject of
finding a short route to the Indies. Their commerce opened the tide
of discovery by navigation. Moorish and Jewish industry sought
foreign markets and found them, too, from the Azores to the interior
of China, from the Baltic to the coast of Mozambique, and eventually
from the kingdom of Granada to the new world. Granada, especially
in the words of the historian, became the common city of all nations.
The reputation of its citizens for trustworthiness was such that their
bare word was more relied on than a written contract is now among
us, to which a Catholic bishop adds: "Moorish integrity is all that is
necessary to make a good Christian."[37]
The position of the Moors and Jews of Spain in the industries may,
therefore, be briefly summarized thus, a prosperous state of
commerce arose never known before, and in the southern part of
Europe never equalled since. Farther and farther this commerce
pushed its interests, and more and more busy became the industries
at home, and greater and greater grew their opulence. Gradually the
rest of Europe awakened from its lethargy. Moorish and Jewish toil
infused life and ambition into its people. Italy, Portugal, France and
England began to compete. New markets became necessary. New
discoveries followed, and with the general activity and prosperity
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

ebookbell.com

You might also like