Professional Documents
Culture Documents
Full download Mathematica by Example 5th Edition Martha L. Abell & James P. Braselton file pdf all chapter on 2024
Full download Mathematica by Example 5th Edition Martha L. Abell & James P. Braselton file pdf all chapter on 2024
https://ebookmass.com/product/pediatric-neurosurgery-
neurosurgery-by-example-1st-edition-nathan-selden/
https://ebookmass.com/product/oracle-pl-sql-by-example-6th-
edition-benjamin-rosenzweig/
https://ebookmass.com/product/operator-theory-by-example-1st-
edition-stephan-ramon-garcia/
https://ebookmass.com/product/deep-dive-into-power-automate-
learn-by-example-1st-edition-mishra/
Your Wish Is My Command: Programming by Example Henry
Lieberman
https://ebookmass.com/product/your-wish-is-my-command-
programming-by-example-henry-lieberman/
Freed E. L. James
https://ebookmass.com/product/freed-e-l-james-2/
https://ebookmass.com/product/palliative-care-perspectives-james-
l-hallenbeck/
https://ebookmass.com/product/sensors-for-mechatronics-2nd-
edition-paul-p-l-regtien/
https://ebookmass.com/product/ansible-for-kubernetes-by-example-
automate-your-kubernetes-cluster-with-ansible-1st-edition-luca-
berton-2/
MATHEMATICA
BY EXAMPLE EDITION
FIFTH
Martha L. Abell
James P. Braselton
Mathematica by Example
This page intentionally left blank
Mathematica by
Example
Fifth Edition
Martha L. Abell
Georgia Southern University, Statesboro, USA
James P. Braselton
Georgia Southern University, Statesboro, USA
Academic Press is an imprint of Elsevier
125 London Wall, London EC2Y 5AS, United Kingdom
525 B Street, Suite 1800, San Diego, CA 92101-4495, United States
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
Copyright © 2017 Elsevier Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical,
including photocopying, recording, or any information storage and retrieval system, without permission in writing from the
publisher. Details on how to seek permission, further information about the Publisher’s permissions policies and our
arrangements with organizations such as the Copyright Clearance Center and the Copyright Licensing Agency, can be
found at our website: www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the Publisher (other than as may
be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and experience broaden our
understanding, changes in research methods, professional practices, or medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using any
information, methods, compounds, or experiments described herein. In using such information or methods they should be
mindful of their own safety and the safety of others, including parties for whom they have a professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability for any
injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from any use or
operation of any methods, products, instructions, or ideas contained in the material herein.
ISBN: 978-0-12-812481-9
v
vi Contents
ix
x Preface
We began Mathematica by Example in 1990 and the first edition was published in 1991.
Back then, we were on top of the world using Macintosh IIcx’s with 8 megs of RAM and 40
meg hard drives. We tried to choose examples that we thought would be relevant to beginning
users – typically in the context of mathematics encountered in the undergraduate curriculum.
Those examples could also be carried out by Mathematica in a timely manner on a computer
as powerful as a Macintosh IIcx.
When working on the Fifth edition, we are on the top of the world with iMacs with dual
Intel processors complete with 8 gigs of RAM and 1 or 2 Terabyte hard drives. Now we are
working with machines with more memory than we can comprehend and so fast we can’t
believe that computers will be faster but they will almost certainly be nearly obsolete by the
time you are reading this. The examples presented in Mathematica by Example continue to be
the ones that we think are most similar to the problems encountered by beginning users and
are presented in the context of someone familiar with mathematics typically encountered by
undergraduates. However, for this Fifth edition of Mathematica by Example we have taken
the opportunity to expand on several of our favorite examples because the machines now have
the speed and power to explore them in greater detail.
Other improvements to the Fifth edition include:
1. In Chapter 3, we have increased the number of examples relating to applications of series,
particularly discussing “how is π approximated accurately now?”
2. Chapter 4, Introduction to Lists and Tables, contains several examples illustrating various
techniques of how to quickly create plots of bifurcation diagrams, Julia sets, and the Man-
delbrot set with new Mathematica functions that make visualizing these sets remarkably
easy.
3. In Chapter 6, we have taken advantage of the Manipulate function to illustrate a variety
of situations and expand on many examples throughout the chapter. For example, see
Example 6.13 for a comparison of solutions of nonlinear equations to their corresponding
linear approximations.
4. We have included references that we find particularly interesting in the Bibliogra-
phy, even if they are not specific Mathematica-related texts. A comprehensive list of
Mathematica-related publications can be found at the Wolfram web site.
http://store.wolfram.com/catalog/books/
Also, be sure to investigate, use, and support Wolfram’s MathWorld – simply an amazing
web resource for mathematics, Mathematica, and other information.
http://store.wolfram.com/catalog/books/
Martha L. Abell
James P. Braselton
Statesboro, GA, USA
June, 2017
Chapter 1
Getting Started
telephone: +81-(0)3-5276-0506
fax: +81-(0)3-5276-0509
email: info-asia@wolfram.com
Also, when you go to the Wolfram Documentation center (under Help in the Mathematica
menu) you can choose Wolfram Documentation to see the major differences. Also, the
upper right hand corner of the main help page for each function will tell you if it is new in
Version 11 or has been updated in Version 11.
If you start Mathematica by selecting the Mathematica icon, Mathematica’s startup win-
dow, “welcome screen,” is displayed, as illustrated in the following screen shot.
From the startup window, you can perform a variety of actions such as creating a
new notebook. For example, selecting New Document generates a new Mathematica note-
book.
4 Mathematica by Example
Mathematica’s online help facilities are spectacular. For beginning users, one of the more
convenient features are the various Palettes that are available. The Palettes provide a variety
of fill-in-the blank templates to perform a wide variety of action. To access a Palette go to
the Mathematica menu, select Palettes and then select a given Palette. The following screen
shots show the Basic Math Assistant and Classroom Assistant palettes.
If you go further into the submenu and select Other..., you will find the Algebraic Ma-
The standard Mathematica
palettes are summarized in
nipulation palette, a slightly different Basic Math Input palette from that mentioned above,
Fig. 1.5. and the Basic Typesetting palette.
Getting Started Chapter | 1 5
When you start typing in the new notebook created above, the thin black horizontal line near
the top of the window is replaced by what you type.
Once Mathematica has been started, computations can be carried out immediately. Mathe-
matica commands are typed and the black horizontal line is replaced by the command, which
is then evaluated by pressing Enter. Note that pressing Enter or Shift-Return evaluates
commands and pressing Return yields a new line. Output is displayed below input. We il-
With some operating systems, lustrate some of the typical steps involved in working with Mathematica in the calculations
Return evaluates commands that follow. In each case, we type the command and press Enter. Mathematica evaluates the
and Shift-Return yields a command, displays the result, and inserts a new horizontal line after the result. For example,
new line.
typing N[, then pressing the π key on the Basic Math Input palette, followed by typing ,50]
The Basic MathInput and pressing the enter key
palette:
N[π, 50]
3.1415926535897932384626433832795028841971693993751
returns a 50-digit approximation of π . Note that both π and Pi represent the mathematical
constant π so entering N[Pi,50] returns the same result. For basic computations, enter them
into Mathematica in the same way as you would with most scientific calculators.
The next calculation can then be typed and entered in the same manner as the first. For
example, entering
to quickly enhance a graphic. In this case we use the arrow button and “T” (text) button twice
to identify each curve shown in Fig. 1.2.
The various elements can be modified by clicking on them and moving and/or typing as
needed. In particular, notice the “cross-hair” button in the second row.
Use this button to identify coordinates in a plot. After selecting the graphic, selecting the
button, then moving the cursor within the graphic will show you the coordinates.
With Mathematica 11, you can use Manipulate to illustrate how changing various param-
eters affect a given function or functions. With the following command we illustrate how a
and b affect the period of sine and cosine and c affects the amplitude of the cosine func-
tion.
{{d, 1, “Amplitude for Sine”}, .1, 5}, {{c, 1, “Amplitude for Cosine”}, .1, 5}]
8 Mathematica by Example
Use the slide bars to adjust the values of the parameters or click on the + button to expand
the options to enter values explicitly or generate an animation to illustrate how changing the
parameter values changes the problem.
Getting Started Chapter | 1 9
FIGURE 1.3 On the left, a three-dimensional plot. On the right, select the bounding box and use the cursor to move
the graphic to the desired perspective.
Axes → None]
graphs the function z = sin(x + cos(y)) for 0 ≤ x ≤ 4π , 0 ≤ y ≤ 4π . Later we will learn other
ways of changing the viewing perspective. For now, we note that by selecting the graphic, you
can often use the cursor to move the graphic to the desired perspective or viewing angle as
illustrated in Fig. 1.3. Notice that every
To print three-dimensional objects with your 3D printer or a 3D printing service, you need Mathematica command
to generate an STL file. To create an STL file, an object must be orientable. This basically begins with capital letters and
means that a three-dimensional object has an inside and an outside. Objects like the Mobius the argument is enclosed by
strip, Klein bottle, and the projective plane are not orientable so printing likenesses of them square brackets [...].
can be challenging. On the other hand, objects like spheres, toruses, and so on are orientable.
In the case of the previous plot, it has a top and bottom but neither an inside nor an outside.
With Mathematica 11, provided that an object is orientable, you can use Mathematica code
to generate an STL object and print it on either your own 3-dimensional printer or have it
printed by one of the many 3-dimensional printing services.
For the previous example, there are multiple ways of proceeding. We also illustrate how
to use Mathematica’s extensive help facilities. From the Welcome Screen, select Documen-
tation
Another random document with
no related content on Scribd: