12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CONTENTSPrefacexxiii1 Computational Science Basics 11.1 Computational Physics and Science 11.2 How to Read and Use This Book 31.3 Making Computers Obey; Languages (Theory) 61.4 Programming Warmup 81.4.1 Structured Program Design 101.4.2 Shells, Editors, and Execution 111.4.3 Java I/O, Scanner Class with printf 121.4.4 I/O Redirection 121.4.5 Command-Line Input 131.4.6 I/O Exceptions: FileCatchThrow.java 141.4.7 Automatic Code Documentation ⊙ 161.5 Computer Number Representations (Theory) 171.5.1 IEEE Floating-Point Numbers 181.5.2 Over/Underflows Exercises 241.5.3 Machine Precision (Model) 251.5.4 Determine Your Machine Precision 271.6 Problem: Summing Series 271.6.1 Numerical Summation (Method) 281.6.2 Implementation and Assessment 292 Errors & Uncertainties in Computations 302.1 Types of Errors (Theory) 302.1.1 Model for Disaster: Subtractive Cancellation 322.1.2 Subtractive Cancellation Exercises 332.1.3 Round-off Error in a Single Step 342.1.4 Round-off Error Accumulation After Many Steps 352.2 Errors in Spherical Bessel Functions (Problem) 362.2.1 Numerical Recursion Relations (Method) 362.2.2 Implementation and Assessment: Recursion Relations 38−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.34811_fm — <strong>2008</strong>/2/13 — Page vii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!