Transcription of CHAPTER 1
1 CHAPTER 1 Introduction to MathcadMathcad is a product of MathSoft inc. The Mathcad can help us tocalculate, graph, and communicate technical ideas. It lets us work withmathematical expressions using standard math notation - but with theadded ability to recalculate, view, present, and publish with ease, evento the Web. We shall explore the following functionalities provided byMathcad , Numeric operators perform summations, products, derivatives,integrals and Boolean operations. Numeric functions apply trigonometric, exponential, hyper-bolic and other functions and transforms.
2 Symbolics simplify, differentiate, integrate, and transform ex-pressions algebraically. Vectors and Matrices manipulate arrays and perform vari-ous linear algebra operations, such as finding eigenvalues andeigenvectors, and looking up values in arrays. Differential Equation Solvers support ordinary differential equa-tions, systems of differential equations, and boundary valueproblems both at the command line and in solve blocks thatuse natural notation to specify the differential equations this CHAPTER , we give a brief introduction to its user interface andthe basic usage of MathCad in defining, evaluating, and graphing ofvariables and INTRODUCTION TO Mathcad1.
3 User Interface: Menus and ToolbarsSince MathCad is a window program as shown in the followingscreen shot after run the Mathcad WindowThe blank area is thework areathat allow us typing and evaluat-ing mathematical expression, graphing, symbolic computing, enteringand running Mathcad scripting codes, and entering ordinary has standardmain menu barat the top of the window as mostwindow programs do that is shown in the following screen Menu BarBut some menus deserve a little more attention.
4 They areView,Insert, The View , among other features,allows a user to bring up popup menu bars for using with Mathcad .1. USER INTERFACE: MENUS AND TOOLBARS3 Figure BarMathcad has nine popup toolbars that for entering math formulas,mathematical symbol, graphing, programming, etc. We can choose tobring up each one at a time or bring up the top level popup menutoolbar by selectingMathas shown in the following screen shot,Figure Level Popup Menu ToolbarBy click each menu icon at this top level menu bar, we can bringeach individual one as INTRODUCTION TO MathcadPractice(1)Start the Mathcad program and explore it top menu system byclick on each menu item.
5 (2)Bring up theMathpopup menu toolbar, move mouse overeach icon to see the caption.(3)Click each icon of theMathpopup toolbar to bring up otherpopup toolbars and explore graphic toolbar contains toolbars forFigure Toolbarcreating 2D-graph and 3D-graph that are most useful for our click on any blank spot in the work area, which tells Mathcadwhere to place the graphic region; then click on the iconor type [Shift][2]( @ sign) Mathcad creates a 2D graphic region atthe selected location that can be used to graph any equationy=f(x)or vector pair{Y, X}.
6 We will give examples to illustrate how to graphfunctions and vector pair in later and Matrix and Matrix Tool-barcontains toolbars for creating and manipulating and Matrix Toolbar1. USER INTERFACE: MENUS AND TOOLBARS5 The most frequently use menu selection in the matrix popup toolbaris the create matrix icon,which upon click will bring up a dialog box that allow us to createa matrix with specified number of rows and columns. Another way tobring up the matrix creating dialog box is press [Ctrl][M] (hold [Ctrl]key and press [M] key)).
7 Matrix with one row or column is avector. The matrix popup toolbar also contains menu selections thathelp us to find eigenvalues and eigenvectors, to access each individualrow or column, or find inverse. However once we remember the hot-keyor function-call for each operation, we don t really need these hot-key or function-call is a much quick way to invoke the example, to find inverse of an given matrixA, we only need totypeA^{-1}(which will show asA 1in the workplace) and = (whichtells Mathcad to execute the operation) to find Toolbarcontains tool-Figure Toolbarbar for assignment operator :=, global definition operator , and theevaluation command =.
8 Notice in Mathcad , equal sign = is used as evaluation commandthat tells Mathcad to carry out the computation. There are two ex-ecution mode, one isautomatic, in this mode, Mathcad carries outexecution when we press [=]; another ismanual, in this mode you willhave first press [=] followed by [F9] key to let Mathcad to carry out theexecution. The manual mode is desirable when we want to delay theexecution and don t want to be bothered by many error message Math-cad would produce in automatic mode. You turn off/on the automaticmode from theMathmenu on theMain Menu INTRODUCTION TO MathcadIn the automatic execution mode, after we type3+2=we get3 + 2 = we want toassign2 to variablexwe will have to typex:2, whichwill be displayed asx:=2in the work area.
9 Therefore, a mathematicalexpressiony=x+ 3will be enter differently according to the meaning of the expression,(1)Entering it asy:x+3whenxvalue has been defined beforethis expression and you wantyto be the value ofxplus 3, the value ofx+ 3 toy.(2)Entering it asy(x):x+3when we want to setyas a functionofxdefined asx+ 3.(3)Entering it asy[Ctrl]=x+3when we like to compareyandx+ 3, to logically determine ifyhas the same value asx+ 3,here [Ctrl]= mean enter = while hold the [Ctrl] can get the logic equal sign=from the Boolean Toolbaras shown below.
10 Notice you also get , ,6=, and other logicoperation from the Boolean ToolbarThe global assignment operator (shortcut ) is to assign anvalue (expression) to a variable (a function) so it can be referred inany place of the work area. The following screen shot illustrates thedifference between =, :=,=, and ,1. USER INTERFACE: MENUS AND TOOLBARS7 The reason behind these differences and using of Mathcad is thatscans your input from top to bottom and left to right as illustrated inthe following StartTop-Leftto to//RightBottomSo a variable or a function must be defined before it is used.