To Mary, Benjamin, and Graeme
To Mary, Benjamin, and Graeme
ABOUT THE AUTHOR Jim Hoste, Ph. D, is a mathematics professor at Pitzer College and has used Mathematica since its initial release in 1988. He has been an associate editor of the Journal of Knot Theory and Its Ramifications since 1991 and has authored dozens of research publications
ABOUT THE AUTHOR Jim Hoste, Ph.D., is a mathematics professor at Pitzer College and has used Mathematica since its initial release in 1988. He has been an associate editor of the Journal of Knot Theory and Its Ramifications since 1991 and has authored dozens of research publications
CONTENTS Preface Acknowledgments XVIl CHAPTER 1 Getting Started 1.1 Starting mathematica 1.2 Entering Expressions 1.3 Editing Cells 1.4 Basic Arithmeti 1.5 Using Previous Results 1.6 Exact versus Approximate 111234569 1.7 Using Functions 1.8 Using variables 1.9 Using Comments 1.10 Suppressing Output 13 1.11 Aborting a Calculation 1.12 Lists 1.13 Palettes 1.14 Saving and Printing Our Work 1.15 Getting Help 1.16 Find Out More
CONTENTS Preface xiii Acknowledgments xvii CHAPTER 1 Getting Started 1 1.1 Starting Mathematica 1 1.2 Entering Expressions 1 1.3 Editing Cells 2 1.4 Basic Arithmetic 3 1.5 Using Previous Results 4 1.6 Exact versus Approximate 5 1.7 Using Functions 6 1.8 Using Variables 9 1.9 Using Comments 12 1.10 Suppressing Output 13 1.11 Aborting a Calculation 16 1.12 Lists 17 1.13 Palettes 20 1.14 Saving and Printing Our Work 23 1.15 Getting Help! 23 1.16 Find Out More 25 Quiz 26
ⅷ Mathematica Demystified CHAPTER 2 Two-Dimensional graphics 2.1 The plot function 2.2 Resizing Graphics 31 2.3 Graphics Optior 2.4 Drawing Tools and the graphic Inspector 40 2.5 Using epile 2.7 Animation -Using Manipulate 2.8 Plotting Points with ListPlot 2.9 Curve Fitting 2.10 Plotting in Polar Coordinates 2.11 Parametric Plots 2.12 Drawing Shapes 2.13 Saving and Printing Graphics 2.14 Find out more 65 Quiz CHAPTER 3 Getting Help 3.1 Sy ng 3.2 Delimiter Matching 3.3 Setting Prefer 3.4 The Help 5 Writing Good 3.6 Monitoring calculations 3.7 Getting Out of Trouble 8 3. 8 Ask 84 3.9 Find Out more CHAPTER 4 Odds and ends 4.1 Transforming expressions 4.2 Replacement Rules 4.3 Working with Lis 100 4.4 Sums and Products 106
viii Mathematica Demystified CHAPTER 2 Two-Dimensional Graphics 29 2.1 The Plot Function 29 2.2 Resizing Graphics 31 2.3 Graphics Options 33 2.4 Drawing Tools and the Graphic Inspector 40 2.5 Using Epilog 42 2.6 Mouseover Effects---Tooltip 43 2.7 Animation---Using Manipulate 44 2.8 Plotting Points with ListPlot 46 2.9 Curve Fitting 49 2.10 Plotting in Polar Coordinates 52 2.11 Parametric Plots 55 2.12 Drawing Shapes 59 2.13 Saving and Printing Graphics 65 2.14 Find Out More 65 Quiz 66 CHAPTER 3 Getting Help 69 3.1 Syntax Coloring 69 3.2 Delimiter Matching 73 3.3 Setting Preferences 77 3.4 The Help Menu 78 3.5 Writing Good Code 79 3.6 Monitoring Calculations 82 3.7 Getting Out of Trouble 84 3.8 Ask an Expert 84 3.9 Find Out More 85 Quiz 85 CHAPTER 4 Odds and Ends 87 4.1 Transforming Expressions 87 4.2 Replacement Rules 94 4.3 Working with Lists 100 4.4 Sums and Products 106
Contents ix P 4.5 Matrice 4.6 Find Out more Qu 110 CHAPTER 5 Functions 113 5.1 Defi 113 5.2 Pure Functions 118 5.3 Elementary Programming 4 Using Modules 126 5.5 Find Out more Qu UIZ 134 CHAPTER 6 Three-Dimensional Graphics 137 6.1 The plot3D Function 137 6.2 3D Graphics Options Surfaces of revolutio 6.4 Drawing Contours or Level Sets 6.5 Drawing Curves in 3-Space 156 6.6 Drawing Graphics Primitive 6.7 Find Out more Quiz CHAPTER Z Calculus 167 7.1 Limits 167 7.2 One-Sided Limits 171 7.3 Multivariable limits 7.4De 7.5 Minimum/Maximum Problems 7. 6 Series 187 7.7 Integration 7. 8 Antidifferentiation 7.9 Applications of Integration 7.10 Find Out more Qu
Contents ix 4.5 Matrices 108 4.6 Find Out More 110 Quiz 110 CHAPTER 5 Functions 113 5.1 Defining Functions 113 5.2 Pure Functions 118 5.3 Elementary Programming 121 5.4 Using Modules 126 5.5 Find Out More 133 Quiz 134 CHAPTER 6 Three-Dimensional Graphics 137 6.1 The Plot3D Function 137 6.2 3D Graphics Options 139 6.3 Surfaces of Revolution 145 6.4 Drawing Contours or Level Sets 148 6.5 Drawing Curves in 3-Space 156 6.6 Drawing Graphics Primitives 159 6.7 Find Out More 163 Quiz 163 CHAPTER 7 Calculus 167 7.1 Limits 167 7.2 One-Sided Limits 171 7.3 Multivariable Limits 173 7.4 Derivatives 177 7.5 Minimum/Maximum Problems 182 7.6 Series 187 7.7 Integration 191 7.8 Antidifferentiation 196 7.9 Applications of Integration 201 7.10 Find Out More 207 Quiz 207