An Introduction to C++ and Numerical Methods by James M. OrtegaAn Introduction to C++ and Numerical Methods by James M. Ortega

An Introduction to C++ and Numerical Methods

byJames M. Ortega, Andrew S. Grimshaw

Paperback | June 1, 1998

Pricing and Purchase Info


Earn 669 plum® points

Prices and offers may vary in store


In stock online

Ships free on orders over $25

Not available in stores


An Introduction to C++ and Numerical Methods provides a brief yet comprehensive introduction to programming and numerical methods for students in engineering, chemistry, physics, and applied mathematics. It is suitable for second semester or second year students who have had at least asemester of calculus. This text offers students both an introduction to programming in C++ and clear explanations of the basics of numerical methods, including numerical integration and the solution of ordinary differential equations, nonlinear equations, and systems of linear equations. It is unique among textbooksat this level in its extensive coverage of numerical methods used in scientific and engineering computation. An Introduction to C++ and Numerical Methods is designed to help students move quickly into writing interesting and sophisticated programs. The text begins with an introduction to scientific computing and the basic constructs of C++, including variables and assignment, typing, if statements, forand while loops, functions, one-dimensional arrays, and the cout and cin objects. After students have gained some experience with programming using these constructs, the topics are later revisited in greater detail, leading up to the important topic of classes and object-oriented programming.Throughout the text Ortega and Grimshaw emphasize the basic paradigms for constructing good programs and detecting errors.
James Ortega and Andrew Grimshaw are both in the Computer Science Department, University of Virginia.
Title:An Introduction to C++ and Numerical MethodsFormat:PaperbackDimensions:288 pages, 7.4 × 9.09 × 0.59 inPublished:June 1, 1998Publisher:Oxford University Press

The following ISBNs are associated with this title:

ISBN - 10:0195117670

ISBN - 13:9780195117677


Table of Contents

PrefacePart I Basic Constructs1. INTRODUCTION1.1. Computers and Software1.2. Binary Numbers and Memory1.3. Rounding Errors1.4. Programs2. A FIRST C++ PROGRAM2.1. Computation and Assignment2.2. Variable Types2.3. Input and Output2.4. A Complete Program2.5. Errors and Debugging3. DECISIONS, DECISIONS3.1. The if Statement3.2. Logical Operators3.3. Nested If and Switch Statements3.4. Good Programming Practice4. AROUND AND AROUND: ITERATION4.1. The for Statement4.2. The while Statement4.3. An Approximation to ex4.4. Advanced Loop Control5. FUNCTIONS5.1. Library Functions5.2. User-Defined Functions5.3. More General Functions5.4. Local vs. Global Variables6. NUMERICAL INTEGRATION6.1. Approximate Integration Formulas6.2. Flow Charts6.3. An Integration Program6.4. Discretization Error7. READING AND WRITING: INPUT/OUTPUT7.1. Precision7.2. Spacing7.3. File Input/Output7.4. The printf () Function8. SOLUTION OF NONLINEAR EQUATIONS8.1. The Bisection Method8.2. Newton's Method8.3. Errors and a Combined Method9. LOTS OF VALUES: ARRAYS9.1. Array Declarations9.2. Arrays and Functions10. DIFFERENTIAL EQUATIONS10.1. The Initial Value Problem10.2. Euler's Method10.3. Systems of EquationsPart II Extensions of the Basic Constructs11. MORE ON DATA TYPES AND OPERATIONS11.1. Other Fundamental Data Types11.2. Operations11.3. Characters and Strings11.4. User-Defined Data Types12. LOTS MORE VALUES: TWO-DIMENSIONAL ARRAYS12.1. Two-Dimensional Arrays12.2. Arrays and Functions12.3. Arrays of Strings13. LINEAR EQUATIONS13.1. Least-Squares Approximation13.2. Gaussian Elimination13.3. Errors13.4. Efficiency14. MORE ON FUNCTIONS14.1. Reference versus Value14.2. Recursive and Inline Functions14.3. Function Miscellanea14.4. Libraries of Functions15. POINTERS15.1. Pointer Variables15.2. Pointers and Arrays15.3. Pointers and Functions15.4. Pointers and Strings16. DYNAMIC MEMORY16.1. Dynamic Memory Allocation16.2. Matrices and Strings16.3. Linked ListsPart III Object-Oriented Programming17. CLASSES AND OBJECTS17.1. A Simple Class17.2. Classes and Functions17.3. Stream Classes18. ARRAY CLASSES AND DYNAMIC MEMORY18.2. Dynamic Memory Allocation18.3. A Matrix Class19. INHERITANCE19.1. Derived Classes19.2. Polymorphism and Virtual Functions19.3. Linear EquationsFurther ReadingAppendix 1: ASCII Character CodesAppendix 2: Library FunctionsIndex

Editorial Reviews

"This is an excellent text and the Instructor's Manual is very helpful. The numerous examples from engineering make this the best text for engineering courses in C++."--Rolph W. Pike, Louisian State University