Programming With Mathematica 4th Revised Edition Edition Paul Wellin PDF Download
Programming With Mathematica 4th Revised Edition Edition Paul Wellin PDF Download
https://ebookfinal.com/download/programming-with-mathematica-4th-
revised-edition-edition-paul-wellin/
https://ebookfinal.com/download/an-introduction-to-programming-with-
mathematica-3rd-edition-paul-r-wellin/
https://ebookfinal.com/download/beginning-programming-with-python-for-
dummies-1st-edition-john-paul-mueller/
https://ebookfinal.com/download/programming-architecture-paul-coates/
https://ebookfinal.com/download/crc-standard-curves-and-surfaces-with-
mathematica-third-edition-von-seggern/
Agile Web Development with Rails 4 4th Revised edition
Edition Sam Ruby
https://ebookfinal.com/download/agile-web-development-with-
rails-4-4th-revised-edition-edition-sam-ruby/
https://ebookfinal.com/download/introduction-to-the-mathematics-of-
operations-research-with-mathematica-2-ed-edition-hastings/
https://ebookfinal.com/download/murach-s-asp-net-4-web-programming-
with-c-2010-4th-ed-edition-boehm/
https://ebookfinal.com/download/murach-s-ado-net-4-database-
programming-with-c-2010-4th-edition-anne-boehm/
https://ebookfinal.com/download/functional-programming-in-scala-1st-
edition-paul-chiusano/
Programming with Mathematica 4th Revised edition
Edition Paul Wellin Digital Instant Download
Author(s): Paul Wellin
ISBN(s): 9781107009462, 1107009464
Edition: 4th Revised edition
File Details: PDF, 11.27 MB
Year: 2013
Language: english
more information - www.cambridge.org/9781107009462
Programming with MathematicaR
An Introduction
Starting from first principles, this book covers all of the foundational material needed to
develop a clear understanding of the Mathematica language, with a practical emphasis on
solving problems. Concrete examples throughout the text demonstrate how Mathematica
can be used to solve problems in science, engineering, economics/finance, computational
linguistics, geoscience, bioinformatics, and a range of other fields.
r Assumes no formal knowledge of programming.
r Over 285 exercises give the reader plenty of practice using the language to solve problems.
r Ideal for self-study, or for anyone wishing to further their understanding of Mathematica.
r Mathematica notebooks containing examples, programs and solutions to exercises are
available from www.cambridge.org/wellin.
Paul Wellin worked for Wolfram Research from the early-1990s through 2011, directing the
Mathematica training efforts with the Wolfram Education Group. He has taught mathemat-
ics at both public schools and at the university level for over 12 years. He has given talks,
workshops, and seminars around the world on the integration of technical computing and
education and he has served on numerous government advisory panels on these issues. He
is the author of several books on Mathematica.
Programming with Mathematica
R
An Introduction
PAUL WELLIN
cambridge university press
Cambridge, New York, Melbourne, Madrid, Cape Town,
Singapore, São Paulo, Delhi, Mexico City
Cambridge University Press
The Edinburgh Building, Cambridge CB2 8RU, UK
Published in the United States of America by Cambridge University Press, New York
www.cambridge.org
Information on this title: www.cambridge.org/9781107009462
C Paul Wellin 2013
Text set in DTL Albertina 11/13 pt; captions set in Syntax LT System Mathematica
R
.
Designed and typeset by the author.
Printed and bound in the United Kingdom by the MPG Books Group
A catalogue record for this publication is available from the British Library
Mathematica and Wolfram Mathematica are registered trademarks of Wolfram Research, Inc.
Preface · page xi
1 An introduction to Mathematica
1.1 Overview of basic operations · 1
Numerical and symbolic computation · Graphics and visualization · Working with data · Dynamic
interactivity · Programming
2.2 Definitions · 40
Defining variables and functions · Immediate vs. delayed assignments · Term rewriting · Functions with
multiple definitions · Exercises
2.4 Attributes · 53
Exercises
vi Contents
3 Lists
3.1 Creating and displaying lists · 58
List structure and syntax · List construction · Displaying lists · Arrays · Exercises
5 Functional programming
5.1 Introduction · 116
5.2 Functions for manipulating expressions · 118
Map · Apply · Thread and MapThread · The Listable attribute · Inner and Outer · Select and Pick · Exercises
6 Procedural programming
6.1 Loops and iteration · 190
Newton’s method · Do loops and For loops · Example: random permutations · While loops · NestWhile and
NestWhileList · Exercises
7 Recursion
7.1 Fibonacci numbers · 231
Exercises
8 Numerics
8.1 Numbers in Mathematica · 251
Types of numbers · Digits and number bases · Random numbers · Exercises
9 Strings
9.1 Structure and syntax · 310
Character codes · Sorting lists of characters · Ordered words · Exercises
11 Dynamic expressions
11.1 Manipulating expressions · 449
Control objects · Control wrapper · Viewers · Animating the hypocycloid · Visualizing logical operators ·
Exercises
Contents ix
Solutions to exercises
2 The Mathematica language · 575
3 Lists · 578
4 Patterns and rules · 582
5 Functional programming · 588
6 Procedural programming · 614
7 Recursion · 621
8 Numerics · 626
9 Strings · 638
10 Graphics and visualization · 651
11 Dynamic expressions · 666
12 Optimizing Mathematica programs · 676
13 Applications and packages · 681
Bibliography · 687
Index · 695
Preface
Programming with Mathematica
Well-designed tools are not simply things of beauty to be admired. They are, above all, a joy to
use. They seem to have their own consistent and readily apparent internal logic; using them
seems natural – intuitive even – in that it is hard to imagine using any other tool, and, typically, a
minimal amount of effort is required to solve the problem for which those tools were designed.
You might even begin to think that your problems were designed for the tool rather than the
other way around.
Programming with Mathematica is, first and foremost, a joy. Having used various programming
languages throughout my life (starting with Algol and Fortran), it is now hard for me to
imagine using a tool other than Mathematica to solve most of the computational problems that I
encounter. Having at my fingertips an extremely well-thought-out language, combined with
tools for analysis, modeling, simulation, visualization, interface creation, connections to other
technologies, import and export, seems to give me everything I might need.
Ultimately though, no tool can solve every problem you might encounter; what really makes
Mathematica the indispensable tool for many computational scientists, engineers, and even artists
and musicians, is its capability for infinite extension through programming. As a language, built
upon the shoulders of such giants as Lisp, Prolog, Apl and C++, Mathematica has extended some
of the best ideas from these languages and created some new ones of its own. A powerful pattern
matching language together with a rule-based paradigm for transforming expressions provides
for a natural approach to writing programs to solve problems. By “natural” I mean a quick and
direct implementation, one that mirrors as closely as possible the statement of the problem to be
solved. From there, it is just a short path to prototyping and eventually a program that can be
tested for correctness and efficiency.
But there are tools, and there are tools! Some tools are very domain-specific, meaning that they
are designed for a narrow set of tasks defined by a certain discipline or framework and are inap-
propriate for tasks outside of their domain. But Mathematica has taken a different approach. It
provides broadly useful tools by abstracting the computational tasks (through symbolic expres-
sion manipulation) in such a way that it has found wide use in fields as varied as genomics and
bioinformatics, astronomy, image processing, social networks, linguistics, and much more.
xii Preface
In addition to the breadth of fields that can be addressed with Mathematica, the variety and
extent of the computational tasks that now challenge us have greatly expanded since the turn of
the millennium. This is due to the explosion in the sheer amount of information and data that
people study. This expansion mirrors the rapid growth in computer hardware capabilities of the
1990s and 2000s which saw speed and storage grow exponentially. Now the challenge is to find
software solutions that are up to the task of managing this growth in information and data. Given
the variety of data objects that people are interested in studying, tools that provide generality and
avoid domain-specific solutions will be the most broadly useful across disciplines and across
time. Mathematica has been around now for over two decades and it continues to find application
in surprising places.
The exercises (over 290 of them) are designed to extend and expand upon the topics discussed
in the chapters in which they occur. You cannot learn how to program by simply reading a book;
the old maxim, “you learn by doing” is as true of learning how to speak a foreign (natural) lan-
guage as it is true of learning a computer programming language. Try to do as many exercises as
you can; create and solve problems that interest you; “life is not a spectator sport” and neither is
learning how to program.
Due to resource limitations, all the solutions could not be included in the printed book. Fortu-
nately, we live in an age of easily disseminated information, and so you will find an extended set
of solutions to most of the exercises in both notebook and PDF format at www.cam-
bridge.org/wellin. In addition, many of the programs developed in the sections and exercises are
included as packages at the same website.
Ê data analysis: filtering signals, cleaning data, stem plots, statistical tests, lag plots,
correlograms, visualizing spread of data;
Ê geometry: convex hull, diameter of pointsets, point-in-polygon problems, traveling salesman-
type problems, hypocycloids and epicycloids, Apollonius’ circle;
Ê image processing: resizing, filtering, segmentation;
Ê graphs and networks: random graphs, regular graphs, bond percolation, connected
components.
Chapter 1 is designed as a brief tour of the current version of Mathematica as of the publication
of this book. The examples give a sense of the scope of Mathematica’s usage in science, engineer-
ing, and other analytic fields. Included is a basic introduction to the syntax of Mathematica expres-
sions, working with the Mathematica interface, and also pointers to the documentation features.
Several important topics are introduced in Chapter 2 that are used throughout the book, in
particular, structure of expressions, evaluation of expressions, various aspects of function defini-
tions, predicates, relational and logical operators, and attributes.
Lists are an essential data type in Mathematica and an understanding of how to work with them
provides a practical framework for the generalization of these ideas to arbitrary expressions.
Chapter 3 focuses on structure, syntax, and tools for working with lists. These topics are all
extended in later chapters in the context of various programming tasks. Included in this chapter
are discussions of functions for creating, displaying, testing, measuring lists, various visualization
tools, arrays (sparse and otherwise), list component assignment, and using Span to extract
ranges of elements.
Patterns and rules are introduced in Chapter 4. Even though pattern-based programming may
be new to many, patterns are so essential to all programming in Mathematica, that it seems most
natural to introduce them at this point and then use them in later chapters on functional and
procedural programming. Topics include a discussion of structured patterns, conditional pat-
terns, sequence pattern matching, using data types to match an expression, repeated patterns,
replacement rules, and numerous examples of functions and programs that make heavy use of
pattern matching.
The chapter on functional programming (Chapter 5) introduces the many functions built into
Mathematica associated with this programming paradigm: Map, Apply , Thread, Outer ,
Select, Pick , and many others. Scoping constructs are explicitly called out in a separate
section. A section on pure functions includes numerous examples to help understand this impor-
tant construct in the context of concrete problems. Adding options, error trapping and messag-
ing, so important for well-designed functions and programs, are discussed in this chapter so that
they can be used in all that follows. Numerous applied examples are included such as protein
Preface xv
interaction networks, Hamming distance, defining new graphics objects, creating palettes for
project files, and much more.
Procedural programming may be most familiar to those who learned programming in a more
traditional language such as Fortran or C. The syntax of procedural programming in Mathemat-
ica is quite similar to that in C and Chapter 6 is designed to help you transition to using Mathemat-
ica procedurally but also mixing it with other programming styles when and where appropriate.
Looping constructs and their syntax are discussed in terms of basic examples which are then built
upon and extended in the remainder of the book. Included are piecewise-defined functions, flow
control, and several classical examples such as sieving for primes and sorting algorithms.
The chapter on recursion, Chapter 7, gives a basic introduction to programming recursively-
defined functions. The main concepts – base cases, recursion on the tail, recursion with multiple
arguments, and so on – are introduced through illustrative examples. The chapter concludes with
a discussion of dynamic programming, a technique for greatly speeding up recursive computa-
tions by automatically creating definitions at runtime.
Chapter 8 introduces the various types of number you can work with in Mathematica – exact,
machine-precision, arbitrary-precision as well as different number types and arrays of numbers.
It includes an extended discussion of random number generators and functions for sampling and
choosing random numbers. The examples and applications section includes a program to com-
pute the radius of gyration tensor of a random walk as well as material on statistical tests, both
built-in and user-defined tests for checking the randomness of sequences of numbers.
The chapter on strings, Chapter 9, is included in recognition of the ubiquity of these objects in
broad areas of science, engineering, linguistics, and many other fields. Topics include an introduc-
tion to the structure and syntax of strings, basic operations on strings including those that mirror
similar operations on lists, an extensive discussion on string patterns including regular expres-
sions such as are found in languages like Perl and Python, and many applications and examples
drawn from linguistics, computer science, and bioinformatics.
Chapter 10 on visualization is designed to give you a good sense of the symbolic graphics
language so that you can both create your own graphics scenes and functions and also make your
objects as efficient as possible. Included is a discussion of primitives, directives, and options, all of
which is mirrored in the section on sound. A section on efficient graphics structures is included
that discusses multi-objects such as multi-points and multi-lines, as well as material on
GraphicsComplex , a compact way to represent a graphical object with many repeated primi-
tive elements. Many extended examples are included for functions to plot points in space con-
nected by lines, economic or financial trend plots, space-filling molecule plots for proteins and
other chemicals, and root plotting functions.
Dynamic objects were introduced in Mathematica 6, and there have, sadly, been few resources
for learning the ins and outs of dynamic programming. Dynamic objects provide tools to create
xvi Preface
Colophon
This book was written and developed in Mathematica. Stylesheets were created to the page specifi-
cations designed by the author while adhering to the constraints of the publisher’s production
department. Pages were output to PostScript and then distilled to PDF with Adobe Distiller using
a configuration file supplied by the publisher to set such parameters as resolution, font embed-
dings, as well as color and image conversions.
Preface xvii
The text for this book, including mathematical formulas, is set in Albertina, a humanist font
designed by the Dutch calligrapher Chris Brand (1921–1999), and digitized by the Dutch Type
Library (dtl). Captions and labels use the fairly animated sans serif Syntax, designed by the Swiss
typographer Hans Eduard Meier (1922– ).
Acknowledgments
Although writing a book may appear to others as a solitary project, authors know better. I con-
sider myself very fortunate to have had wonderful colleagues to work with and have benefited in
innumerable ways from their expertise. The following people provided concrete help in dis-
cussing various topics and answering my many questions: Darren Glosemeyer on date plotting
functions, statistical tests, and statistical plots; Harry Calkins on graphics and general language
issues; Charles Pooh on graphs and networks; Dan Lichtblau on internal algorithms and numer-
ous language issues; Michael Kelly for some suggestions on trend lines implementation; Adriano
Pascoletti for permission to use and modify his code for computing points in nonconvex poly-
gons; Tom Sherlock and Faisal Whepley for help on front-end related issues; Oyvind Tafjord for
various questions and issues with string manipulation and regular expressions; Andre Kuzniarek
and Larry Adelston for layout and production questions.
In addition, I am grateful to the reviewers who provided valuable feedback on early drafts of
this book: Harry Calkins, Darren Glosemeyer, Mariusz Jankowski, Dan Lichtblau, and Oyvind
Tafjord. Any mistakes that remain are mine and mine alone. If you think you have found one,
please let me know so that I can update an errata page on the publisher’s website as well as in any
future printings of this book.
The entire editorial and production stages of this project have been miraculously smooth, in
no small part due to the team at Cambridge University Press. In particular, my editor, David
Tranah and his team, have been both supportive and encouraging throughout the project, provid-
ing all that an author can ask for. Clare Dennison and Abigail Jones were most helpful on the
innumerable editorial and production details that accompany a book project such as this.
Loved ones are the unnamed partners in writing a book. Although unrecognized to the reader,
they nonetheless play a critical role for the author. They provide nourishment (in its many
guises), support, feedback, and that all-too-critical element, time. I have been blessed with a
supportive family throughout this project. In particular, my wife Sheri has lovingly provided all
these things and more.
Finally, I would like to dedicate this book to the memory of a very special friend, Bob Johnson.
Bob was the person most responsible for getting me involved with Mathematica when, back in
1989, as chair of the mathematics department at Sonoma State University, he asked me to join
him in the basement (computers were always in basements in those days!?) at Sonoma State and
we took our first look at a strange new program called Mathematica running on a strange new
xviii Preface
computer housed in a strange black magnesium cube. The excitement of realizing that the worlds
of mathematics, science, and engineering would be dramatically changed by this new program
was matched by the joy Bob and I experienced in learning how to incorporate this tool into our
research and teaching. Bob was that unusual person who knew how to keep his eyes on the prize
and his encouragement of my efforts made a huge difference in my life and in the lives of others
as well. Thanks Bob.
Paul R. Wellin
Random documents with unrelated
content Scribd suggests to you:
"Why not?" Brutar demanded. "Every living thing has a mind."
Eo added, "Since the essence of everything is mentality—naturally
the spark of life must bring that mentality to consciousness."
"These things then," I said, "they know that they are alive?"
"Of course. And Rob, what you told Brutar of your Earth-agriculture
—what you called your vegetable kingdom—seems not so very
different from ours."
"But it is different," I said. "Our plants—our growing things—are not
aware that they are alive."
Eo demanded gently, "How do you know that? Is it not perhaps that
your own mentality is lacking, to gauge the power of theirs?"
I smiled. "It may be so.... Brutar, these lolos plants—what is their
purpose?"
"With them we are going to your Earth," he said. "This lolos plant of
itself has a power very wonderful. We crush it; and the blood of it
taken into our body, sends the mind upon strange and pleasant
wanderings."
"Evil wanderings," said Eo.
A drug! As Brutar further explained, I realized it. And I wondered if
this lolos plant—the name of it—sounded thus since to my own
mentality it suggested the lotus flower. I think that was so.
The blood of this plant was a powerful narcotic. Brutar had been
addicted to its use; and his wandering mind had come into the
Borderland. He had seen our Earth-realm; gone further until he
experienced the sensations of our physical consciousness. Had come
back, to gather his followers; to create in quantity the blood of this
lolos that all might go to conquer and enjoy this greater realm.
Brutar was absorbed in his subject. Listening to him, I had
nevertheless noticed that Bee's attention was fixed upon Eo. She
was whispering to him. With his sweet, boyish face, he was listening
to her, enraptured. He was close beside her, and I saw that he was
touching her. Brutar, still talking to me, bent to show me one of the
lolos plants. It shrank away from him as though in fear. He frowned;
struck it a blow with his hand. His attention momentarily was
diverted from us. I heard Eo murmur softly, yet tensely.
"You are right—girl. This is evil—I realize it now.... Rob! Hold
yourself firm! Stay with me! We will try to escape...."
I must revert now to Will, Thone and Ala in the Big-City. They had
felt Bee's thoughts; they knew we were in danger; Ala had caught
just enough to know that we were with Brutar.
"We must go," Thone hastily declared. "Try and follow them, Ala....
That Brutar is a mind very powerful for evil."
With Will held firmly between them, they swept out into space. To
Will it was a dream, a nightmare of mental chaos. Rushing through
the dark—through seemingly endless Space for endless Time. But he
saw none of the distorted things that I had seen, for he was in
friendly hands. A rushing black Nothingness sweeping past. A vague
dream of flight; but presently he found his mind clearing.
The void was illimitable. But soon it seemed not wholly empty. To
one side was a faint glow—an infinite distance away, as though it
might have been a nebula gleaming over Space a thousand million
Light-years of distance. Or something shining from another Time—
eons away. It moved sidewise as they swept along. It glowed, faded,
was gone.
"We will not go there," Ala murmured. She seemed to shudder. "That
is the Realm of Disease. I hope never to go there."
Endless Time passing. Or perhaps, as Will was thinking, Time was in
abeyance, standing still, non-existent.
And Will saw other far-off gleaming patches, like faint drifting star-
dust. Soon they were gone. He did not ask what they might be.
Ala still felt Bee's thoughts. Then they ceased. Will became aware of
a confusion; a fluttering; as though now the flight had lost direction.
He gazed around intently, searchingly, but the space at that moment
was wholly empty.
"Where are we?" he asked.
Thone and Ala were exchanging thoughts. Thone said:
"Where are we? There is no answer, Will. There is nothing here. We
are nowhere."
A confusion. It seemed that Ala and Thone felt that Brutar's self-
created world might be found by approaching the Realm of Disease.
Will waited, listening silently while they talked of it....
Abruptly Will saw something. A blur—a vague luminosity beneath
them. It was moving. Suddenly he knew it was not large and far-
away, but small and very close. It mounted; broke visually apart,
resolved itself into two dark blobs. Shapes. The moving shapes of a
man and a woman.
They came nearer. The woman was Bee! It was Bee and the
youthful Eo. He was clinging to her; she seemed helping him
struggle upward.
They reached Will. Bee gasped, "He—he is hurt! Oh Will—it's you!
Help him—his mind struggles to leave us! He is wounded. I think—I
think he is going to die!"
She seemed crying as she flung herself into Will's arms. "I don't
want him to die. He is my friend—so gentle, so lovable—I don't want
him to die!"
CHAPTER XIV
THE REALM OF DEATH
I must tell again of that moment when we—Bee and I—were
standing beside the lolos field with Brutar and Eo. Brutar had turned
away. Eo—prompted, I had no doubt, by Bee—murmured, "This is
evil! We will escape—"
My arm reached for Bee. I told myself intensely that now we must
escape ... now I must fling my thoughts—my mind—out into the
void.... And stay with Eo; he would lead us....
I think my groping hand never reached Bee. I felt a swishing sound.
A swirl of thoughts struck me—like feathers blown against me in a
gale. But they seemed to cling. Invisible, imponderable—barely
palpable; dimly I could feel these thoughts like a net entangling me.
I was floundering. Surging through blackness. Where was Bee? I
thought I saw her and Eo whirling near me. But it was a thought
unreal—hallucination; for as I tried to grip it and make them visible,
they were gone. My thought of them dissolved into a realization that
I did not see them, for they were vanished.
But Brutar I saw; a distorted wraith of him ... his grim, menacing
face ... grim with combat....
I was rushing through blackness. But as an undertow may suck the
strongest swimmer, something was pulling me back ... a hampering
net around me ... materializing into greater ponderability ... holding
me firmly.... The blackness about me was taking form. I strove to
think I saw the Big-City. Told myself that that hovering shape above
me was Thone—the friendly Thone; not Brutar.
But it was not Thone; and this place that was clarifying to my vision
was not the Big-City. The lolos field! I came—was dragged, sucked
back to it! The lolos field—I was standing there where before I had
been. And the menacing shape was Brutar—my captor standing
there grimly confronting me.
But Bee and Eo were gone.
These two, escaping, came upon Thone, Will and Ala as I have
related. Came upon them hovering nowhere in the void. Eo was
stricken. Brutar, with what quickness and evil power of mind I could
not conceive, had struck at Eo. A wound, a derangement not
physical, but mental. His mind now—sick, stricken with disease.
Almost wandering; yet not quite unhinged—for the power of his will
was holding it. Bravely he clung to sanity. Fought for it. Yet those—
his friends with him—knew then that he fought a losing battle.
They hung there in the void. Bee was sobbing, "I don't want him to
die! He is my friend."
He held tightly to her. His eyes were very wistful. "They call you a
girl—and now I know I love you!"
The void was moving. It seemed so to Will; seemed that the
blackness was moving past them. Or was it that they—the little knot
of their hovering shapes—was moving? Then Will realized that it was
Eo—his stricken, wandering mind—dragging them somewhere. The
void seemed moving—for how long Will did not know. And then, far
away, in Space and in eons of Time, something became visible. A
faint star-dust glow. A luminous patch. It broadened; spread to the
sides, and up and down until everywhere before them lay its
gleaming radiance.
The realm of disease! Will heard Ala murmur it in accents of sorrow
and apprehension. Eo was rushing for it—and no power that they
had could stop him.
The radiance intensified. A fear—a shuddering horror possessed Will.
With every instinct within him, he recoiled from the approach.
Revolted. But he held tightly to Thone and to Bee; told himself that
they would lead him safely.
Everything was glowing; they were wholly within the glow now. A
silvery glow that shone everywhere about them. But soon to the
silver there came a greenish cast. It deepened. A green, with its
sickly look of death. Green, with the silver turning to a pallid, flat,
dead whiteness. And then a mingled brown; a murk, like a fog
pervading everything.
Abruptly Will became conscious that Eo was no longer with them.
His last despairing cry; and Bee's echo. He was going—floating
downward; while they, uncontaminated, hovered above, at the edge
of the realm, to see it but not to enter.
Will saw but dimly. Saw shapes floating in there. Dismembered
shapes. Others, whole, floating inert. A cauldron, with bubbles of
sight and sound, and smell. Shrouded in murk. Unreal.... A wailing ...
sobbing ... faint aerial voices wailing like ghosts distraught.... And a
stench—the thought of it, no more——but to Will the thought, the
knowledge of all this was horrible, fearsome. Singularly fearsome;
above everything at that moment he feared this realm, this state of
unnatural, tortured existence....
They could still talk to Eo. See him there, laboring, losing his brave
fight to come back to them. He seemed very far away; and yet very
close, for though his form was down there, engulfed with all the
leprous horrors of disease, his voice was very plainly heard. And his
face, the image of it, the physical representation of it to Will's
thought, seemed again at hand. His eyes were very wistful. He was
smiling gently at Bee.
"Soon, girl, I will be gone—into death—it is very near now. I can see
it—see it, just ahead...."
Will saw it, too. Another realm beyond the one they were skirting.
The realm of death. It lay close ahead. Dark. Mysterious. Scarce to
be seen, but only imagined.
Again came Eo's faint voice. "I shall—be there in a moment. It is
very—beautiful. I can see it—right here—" And then he suddenly
whispered, "I love you, my girl Bee—"
And vanished.
Or did he vanish? The shell of him then seemed lying in Bee's arms.
But it was an empty nothing; the shell of a shape of something
which once had been, but now was not....
Thone said gravely, "Watch it, Will. The Thought is gone from it. Our
own thought-matter is all that is left. You shall see of what
permanence that is."
The dead shell lay inert. It was dissolving.... Grewsome.... Will
turned away; then forced his vision back to see a leprous wraith—a
rotting shape which presently, like a melting fog, began to dissipate.
Dissolving, until the very last essence of it was gone into
nothingness.
Ala seemed to sigh. "It is very horrible. Yet I think that we are wrong
to consider it so, for it is Nature."
Will recovered himself. The realm of disease had withdrawn to a
memory. Around him the blackness seemed purified. But ahead he
could see—or thought he saw—that other endless realm where dwell
what we call the dead. Questions flooded him. Eo was there? Could
they not go and see him? Could he—this Entity which had once been
Eo—could he not still speak to them from beyond the borders of
death?
Thone said, "We will approach it if you wish."
Unnameable time; and then Will found that they were there,
hovering; and a realm, a place—a something he knew not what—lay
spread above them. Earnestly he groped for it. Not with his physical
hands; but with his senses. His thought went there and back. He
thought he saw shapes up there. Hovering, glowing shapes in a
great light space. And with futile, childish imagination he endowed
them with beautiful, ethereal qualities; transfigured them into
glowing human shapes of beauty and peace. And thought he saw
them; and that they might speak to him. Or that perhaps, because
Thone might be more than human, they might communicate with
Thone, and thence to him.
And then he laughed. It was all so childish!
Thone said, "Eo is there, in the darkness and the light. You can think
of him. Your thought will go there. And it will come back to you,
fraught with what qualities your imagination may lend it. But nothing
else."
"No," said Will, "nothing else. I understand that now."
CHAPTER XV
THE BIRTH OF A THOUGHT
They turned away in the void—away from the dark-light mystery of
the realm of death, and drove themselves back to the Big-City. The
search for Brutar's encampment was at the moment futile; they
knew they could not reach it. And though Bee had escaped with Eo,
she did not know whether I escaped or not.
They hoped to find me safely returned to the Big-City. But I was not
there. But still Thone felt that I might come. To Will—with his
inherent, instinctive conception of a placid, measured Time—the
delay seemed dangerous. He was impatient; anxious to do
something. But there was nothing which of himself he could do; and
Thone was an Intelligence very keen. Will decided that upon Thone
he must rely.
They went back to the home globe, to rest and to wait for my
possible arrival. Will in a way was glad of the inactivity, for he
remembered that of Thone's plans he knew almost nothing. He
would learn all he could; and with something definitely arranged,
they could act to better purpose.
Will felt the pangs of hunger. They brought a glowing brazier
wherein something smouldered. He ate—inhaled, there is no word
for it. Satisfied his pangs; and drank of the silver mist which came
flowing into the globe at a word of command.... And slept; lost
consciousness, to find himself in blackness with Time wholly gone.
But still I did not come back to the Big-City. There were times when
with Thone, Will journeyed about the city streets, gazing at this
strange life. He saw thought-workers, as I had seen them in Brutar's
encampment. Saw the water being created; saw the thought-matter
moulded and spun into new globes—moulded to all the diverse
purposes of this Ego-life.
He slept again; several times; and ministered to the slight wants of
his tenuous body. A great length of time seemed passing; and still I
did not arrive.
There were many talks that Will had with Thone. Ala and Bee were
generally there, as befitted those of their sex.
Sex? It was interesting to Will. The creation of the individual Ego of
this strange realm, so different an existence, and yet in fundamental
conception so like his own. Already he believed that the same
Creator governed both. With strange ways that we mortals so little
understand, over all the realms, the states of existence, the
Universes that possibly could exist—only one Creator held sway. The
Thought—there could be but One.
Will said, "You once spoke, Thone, of yourself as Ala's parent. And
the necessity of the Thought to the creation of Ego-life. Will you
explain that? In our world we have two sexes. Have you also?"
"Yes," said Thone. "In the higher forms of life—we humans, as you
would say—there are, like yours, two sexes. Call me a man—and Ala
a woman. The difference is one of mental capacity; mental qualities,
inherent perhaps to the Ego. I call it the Soul, though we have no
name for it. I mean that something which makes each individual
different from every other.
"The qualities inherent to the individual mould and form the
mentality. Characterize thus, what we call its sex. The one sex is a
complement to the other. An attraction exists between them—a
desire for proximity so that of their own inherent force they will draw
together. And the one mentality derives force—a mental life-force—
from the other. An exchange—for it yields its own necessary qualities
in return. Thus we have the mating—the basis of the family. Without
it no complete mental health is possible. There is no mentality
capable of existing in health by itself."
"And a birth?" Will suggested.
"Communion of thought. The desire, the longing of two closely
interwoven mentalities of complementary qualities. When they
combine with an intensity of longing, the thought-matter they
mutually create brings into existence another, smaller shape like
themselves. It is very small—very tenuous—scarce to be seen save
by those two who have produced it. It lies inert. Almost formless,
though they sit beside it and strive with their loving thoughts of
what it should be—strive to give it form. It may continue to lie inert;
and at last in spite of their efforts, it may dissolve, dissipate—be
gone, back into Nothingness from whence they drew it. The Thought
was not within it; it never was anything then save a human longing
unblessed.
"Or again, the Thought may be there. It lives. Grows ponderable.
Moves of itself. Thinks of itself. Then it is something itself—
something independent of all save its creator-divine.... The little
nourishment of its body is easily supplied; the mother-parent gives it
lovingly the needed gentler nourishment of the mind; daily she adds
to it the loving tendrils of her thought-matter so tenuous that to the
sight it seems mere light.
"But if the spark is there, glowing brightly, the little Ego lives. Grows
in size. Displays a growing mental capacity of its own. Its own
mental qualities make themselves known, to identify it as a man-
child, or a woman-child. And the Ego, developing, brings it to
individuality. It is Itself; unlike everyone else. The new Individual....
That, my friend Will, is a birth."
Will thought a moment. "There is a beauty to it."
Bee said, "I don't quite understand—" She gazed at Will, puzzled;
and Will felt and understood her confusion. He said:
"Your explanation, Thone, seems to make Man differ from Woman
only in qualities of the Soul and Mind. You do not speak of the body;
yet to me, Ala here appears of very different form from yourself."
Thone smiled. "You say, 'to me.' You have answered yourself, my
friend. The physical aspect of everything is but the reflected image
of it within our own mentality. The gentleness of Ala—those qualities
which make her what she is—are seen by you in the form of what
you call a woman."
"But," protested Will, "does she not look the same to you?"
Space of its own! What diabolical force of Nature would this unleash!
These molecules, atoms, electrons of the steel and brick thus
intermingled! In a Space but half sufficient! A force created of
unknown, unthinkable power—immeasurable as that proverbial
irresistible force meeting an immovable body. Two solid bodies here,
intermingled to their very essence, striving to occupy the same
space at the same time!
Brutar was drawing at me. "Look at them, Rob! Trying to get at it!
And up there—and down below—see them?"
The glowing bricks were lodged up and down the building—all
seemingly on the one side. Down underground, lodged in the very
foundations of the structure I could see three of them piled together.
And frantic shapes of men digging for them through the walls of the
cellars.
"Come further away, Rob. We can see it better from a distance. It
should be very interesting."
We retreated, going back until again we were standing just beneath
the level of City Hall Park. Brutar's men gathered around us—two
hundred ghosts clustered there watching the fruit of their diabolical
efforts. There were soldiers with machine guns in the park. The guns
impotently, ridiculously, were trained upon us. And around the edge
of the park a cordon of police kept back the crowds. I wondered
what time of night it might be. Evening, possibly; and then I saw the
spectral clock of the little tower of the squat City Hall. It was just
before midnight.
Our march, perhaps not so much sinister as weird to the public, had
drawn a jam of the morbidly curious to this part of the city. They
were packed everywhere. And all the normal activities of the city
were stopped. No traffic on the streets. Vehicles motionless.
The great Woolworth Building stood like the ghost of some grave
giant, serene, majestic in the power of its size. Its summit up there
in the gloom seemed lighted; spots of blurred light were everywhere
within it.
The whole scene of shadows seemed unreal. Like a dream. But as I
saw those frantic figures scrambling within the threatened building,
hacking futilely at its foundations to try and remove in time those
dim, glowing bricks materializing from another realm—the stark,
strange reality of it all was forced upon me.
We waited. How long I cannot say. Spectators of two realms, each to
the other mere ghosts, standing there watching and waiting. For a
time nothing happened throughout all the scene. And then a change
was apparent in the crowds about the park. No longer were they
watching us, the ghosts, but they were eyeing now the Woolworth
Building. At first curiously, incredulous to believe the news which
was spreading about. Then restlessly, and then, as orders evidently
were passed to the troops and to the policemen, these began
pushing and shoving at the people. The crowd resisted at first;
moved reluctantly. Then a fear seemed to surge over them—fear
growing to panic. They began trying to run—waves of them
everywhere surging in panic away from the doomed building.
Hundreds went down underfoot, trampled upon in the streets by
their fellows, mad, insane now with fear. And from every nearby
building its occupants came tumbling out like frightened rats;
scurrying out to join the panic of the streets. A chaos everywhere....
And we ghosts stood quiet and serene in its midst.
Brutar murmured. "Watch the great house. They know it is doomed.
See, they have stopped their efforts in there—now at the last, trying
to save themselves."
The Woolworth Building was emptying.... Abandoned....
Breathlessly I stood and gazed upon the ghostly scene. The
tremendous building towered there motionless. But presently I
fancied it stirred; its graceful roof up there seemed swaying....
Shifting.... Or was it a trick of my straining vision? But then I saw it
was not, for palpably the tower swayed.... Leaned. Further—leaning
until all at once I knew it could not recover.... Poised, and then was
toppling.
A breathless instant. Slowly at first, like a felled forest giant, the
great structure was coming down. Slowly, then with a rush it fell to
the south—fell in great shattering segments. Crashed with a
soundless crash upon the several blocks of nearby buildings.
Crashed and tore with the thousands of tons of its weight,
smothering everything beneath its crashing masonry and steel.... A
soundless chaotic scene of ruin and death over all those city blocks,
with huge rising clouds of dirt and smoke mercifully to obscure it.
CHAPTER XVIII
THE RESCUING ARMY
I stood gaping, every sense within me shuddering at that soundless
scene of ruin and death. And then it came upon me that now I could
escape. Brutar had turned triumphantly to his underlings. I heard his
voice: "The first success! Now let us try the others!"
No one seemed to be noticing me. I turned and swept myself away
into the darkness....
I was aware of the grey outlines of New York floating by above
me.... A dim idea was in my mind that I must rejoin Will and
Thone....
Out there beneath the Westchester hills the silent mob of Brutar's
ghostly followers still waited. Near them was the main body of his
army, inactive, waiting here while he with his chosen few were
experimenting upon New York!
Experimenting! This little experimental test, and it had brought down
the Woolworth Building! What then would they do with a general
attack?
I passed around the mob—silent, fleeing spectres—and sped again
into darkness. With no conscious thought of passing time, or
direction to my flight. Yet there must have been some instinct to
guide me. The thought of Bee came strong. A growing triumph, a
relief, told me I was nearing her; and I think now that it was her
thought of me which guided my flight.
Darkness. But overhead lay the shadows of my own world. Winding
grey hills; towns that lay like grey, colorless pictures in a book,
queerly distorted as I looked, upward and through them....
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com