Product Key Features
Number of Pages288 Pages
Publication NameIntroduction to C++ and Numerical Methods
LanguageEnglish
SubjectProgramming Languages / C++, Engineering (General), Numerical Analysis
Publication Year1998
TypeTextbook
AuthorAndrew S. Grimshaw, James M. Ortega
Subject AreaMathematics, Computers, Technology & Engineering
Additional Product Features
Intended AudienceCollege Audience
LCCN97-036115
TitleLeadingAn
Dewey Edition21
Reviews"Ortega and Grimshaw direct their book toward undergraduate studentstaking a course of study in numerical methods. Unlike many earlier books writtenfor use with the BASIC or FORTRAN programming languages, this one gives thereader an introduction to implementing numerical methods using C++. Since C++ islikely one of the more widely used languages of the current day in engineeringand science, this treatment is very appropriate. No previous programmingexperience is required to use this book. The authors take a very gentle andgradual approach to introducing programming concepts. Nevertheless, asignificant number of numerical methods are covered . . . The quality of thepresentation is high, and the book includes a generous number of figures andtables. Undergraduates."--Choice, "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, "An excellent introduction to both C++ and numerical methods. The writing is clear, concise, and very readable. A great book!"--Anton Kruger, The University of Iowa, "An excellent introduction to both C++ and numerical methods. The writing is clear, concise, and very readable. A great book!"--Anton Kruger, The University of Iowa"Ortega and Grimshaw direct their book toward undergraduate students taking a course of study in numerical methods. Unlike many earlier books written for use with the BASIC or FORTRAN programming languages, this one gives the reader an introduction to implementing numerical methods using C++. Since C++ is likely one of the more widely used languages of the current day in engineering and science, this treatment is very appropriate. No previous programmingexperience is required to use this book. The authors take a very gentle and gradual approach to introducing programming concepts. Nevertheless, a significant number of numerical methods are covered . . . Thequality of the presentation is high, and the book includes a generous number of figures and tables. Undergraduates."--Choice"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, "Ortega and Grimshaw direct their book toward undergraduate students taking a course of study in numerical methods. Unlike many earlier books written for use with the BASIC or FORTRAN programming languages, this one gives the reader an introduction to implementing numerical methods using C++.Since C++ is likely one of the more widely used languages of the current day in engineering and science, this treatment is very appropriate. No previous programming experience is required to use this book. The authors take a very gentle and gradual approach to introducing programming concepts.Nevertheless, a significant number of numerical methods are covered . . . The quality of the presentation is high, and the book includes a generous number of figures and tables. Undergraduates."--Choice, "An excellent introduction to both C++ and numerical methods. The writingis clear, concise, and very readable. A great book!"--Anton Kruger, TheUniversity of Iowa, "This is an excellent text and the Instructor's Manual is very helpful.The numerous examples from engineering make this the best text for engineeringcourses in C++."--Rolph W. Pike, Louisian State University
IllustratedYes
Dewey Decimal519.4/0285/5133
Table Of ContentPrefacePart 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
SynopsisAn Introduction to C++ and Numerical Methods is designed specifically for students in disciplines such as physics, chemistry, and engineering who are required to take some computational component. In addition to being an introduction to C++, this text also provides clear explanations of the basics of numerical methods. After a brief introduction to scientific computing, the basic constructs of C++ are introduced in their simplest forms, allowing students to write fairly sophisticated and interesting programs. Subsequent chapters revisit these basic constructs to treat them in more detail. The text is unique for its coverage of numerical methods used in scientific and engineering computation. In addition there is a general discussion of some of the basic paradigms for writing good programs and detecting errors. The result is a brief yet comprehensive treatment of the subject., 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 a semester of calculus. This text offers students both an introduction to programming in C++ and clear explanations of the basics of numerical methods, includingnumerical integration and the solution of ordinary differential equations, nonlinear equations, and systems of linear equations. It is unique among textbooks at this level in its extensive coverage of numericalmethods 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, for and while loops, functions, one-dimensional arrays, and the cout and cin objects. After students have gained some experiencewith 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 Grimshawemphasize the basic paradigms for constructing good programs and detecting errors., 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 a semester 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 textbooks at 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, for and 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.
LC Classification NumberQA297.O778 1998