The working engineer or scientist rarely writes complex applications or extensive computer code. For many disciplines, learning a specific computer language is unnecessary. However, the engineer and scientist must be conversant in a variety of computer tools in order to select the best tool for the task at hand. This workbook assumes that the reader already has the mathematical and programming skills to do the exercises. A common theme is to present the same problem in different formats to learn how each of the three tools is used for the same solution.
Two of the most common computer tools used in industry and research are MATLAB and Mathcad. Both have unique user interfaces and very different ways of doing the same thing. MATLAB is an ideal tool for teaching programming and creating solutions to solve specialized problems. Mathcad, with its graphical user interface is particularly well suited to solving mathematical equations and preparing written reports which must contain extensive analysis. Both have their place in industry. The use and programming of the TI-89 handheld calculator is also included. This calculator enjoys widespread use because of the mathematical capabilities, including matrix algebra, and the ability to be programmed with structured programming techniques.
Introduction v
Chapter 1 TI-89 1
1.1 TI-89® Basics 1
1.2 TI-89 Worked Examples 4
Chapter 2 MATLAB® 17
2.1 MATLAB Basics 17
2.2 MATLAB Worked Examples 18
Chapter 3 Mathcad® 41
3.1 Mathcad Basics 41
3.2 Mathcad Worked Examples 47
Chapter 4 Problems and Exercises 69
Exercise 4.1 Mathematical Calculations 70
Exercise 4.2 MATLAB Vector/Matrix Operations 72
Exercise 4.3 Numerical Solutions 77
Exercise 4.4 Matrix Operation and Matrix Algebra 78
Exercise 4.5 Complex Numbers 80
Exercise 4.6 Solving Systems of Linear Equations 82
Exercise 4.7 Relational and Logical Operators
and their Mathematical Operations 86
Exercise 4.8 Basic Programming Exercises 88
Exercise 4.9 Creating Plots and Graphs 89
Exercise 4.10 Programming Exercises to Solve
Engineering Type Problems 91
Exercise 4.11 Function Programming 93
Exercise 4.12 More Programming Practice 95
Exercise 4.13 Programming with Loops 96
Exercise 4.14 Using Programming Techniques to Solve Detailed or Complex Problems 97