Introduction to Mathcad Theoretical and Practical training

Содержание

Слайд 2

Definition

Mathcad is a product of MathSoft inc. The Mathcad can help

Definition Mathcad is a product of MathSoft inc. The Mathcad can help
us to calculate, graph, and communicate technical ideas. It lets us work with mathematical expressions using standard math notation - but with the added ability to recalculate, view, present, and publish with ease, even to the Web.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 2

Слайд 3

Functionalities provided by Mathcad

Numeric operators perform summations, products, derivatives, integrals and Boolean

Functionalities provided by Mathcad Numeric operators perform summations, products, derivatives, integrals and
operations.
Numeric functions apply trigonometric, exponential, hyperbolic and other functions and transforms.
Symbolics simplify, differentiate, integrate, and transform expressions algebraically.
Vectors and Matrices manipulate arrays and perform various linear algebra operations, such as finding eigenvalues and eigenvectors, and looking up values in arrays.
Differential Equation Solvers support ordinary differential equations, systems of differential equations, and boundary value problems both at the command line and in solve blocks that use natural notation to specify the differential equations and constraints.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 3

Слайд 4

User Interface: Menus and Toolbars

MathCad is a window program as shown in

User Interface: Menus and Toolbars MathCad is a window program as shown
the following screen shot after run the Mathcad program.
To open MathCad software go to Start(Пуск)?Programms (Программы)?Math?Mathcad 11 Enterprise Edition

Korchak Tatiana Viktorovna «KhAI» Informatics Department 4

The blank area is the work area that allow us typing and evaluating mathematical expression, graphing, symbolic computing, entering and running Mathcad scripting codes, and entering ordinary text.

Слайд 5

User Interface: Menus and Toolbars

It has standard main menu bar at the

User Interface: Menus and Toolbars It has standard main menu bar at
top of the window as most window programs do that is shown in the following screen shot.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 5

The View Menu. The View menu, among other features, allows a user to bring up popup menu bars for using with Mathcad .
Mathcad has nine popup toolbars that for entering math formulas, mathematical symbol, graphing, programming, etc. We can choose to bring up each one at a time or bring up the top level popup menu toolbar by selecting Math.

Слайд 6

Graph Toolbar

The graphic toolbar contains toolbars for creating 2D-graph and 3D-graph that

Graph Toolbar The graphic toolbar contains toolbars for creating 2D-graph and 3D-graph
are most useful for our purpose.
First click on any blank spot in the work area, which tells Mathcad where to place the graphic region; then click on the icon or type [Shift][2](@ sign) Mathcad creates a 2D graphic region at the selected location that can be used to graph any equation y = f(x) or vector pair {Y; X}.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 6

Слайд 7

Vector and Matrix Toolbar

The Vector and Matrix Toolbar contains toolbars for creating

Vector and Matrix Toolbar The Vector and Matrix Toolbar contains toolbars for

and manipulating matrices.
The most frequently use menu selection in the matrix popup
toolbar is the create matrix icon, which upon click will
bring up a dialog box that allow us to create a matrix with specified number of rows and columns. Another way to bring up the matrix creating dialog box is press [Ctrl][M] (hold [Ctrl]key and press [M] key)).
Matrix with one row or column is a vector. The matrix popup toolbar also contains menu selections that help us to find eigenvalues and eigenvectors, to access each individual row or column, or find inverse.
Using hot-key or function-call is a much quick way to invoke the menu selection.
For example, to find inverse of an given matrix A, we only need to type A^{-1} (which will show as A¡1 in the workplace) and = (which tells Mathcad to execute the operation) to find it.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 7

Слайд 8

Evaluation Toolbar

The Evaluation Toolbar contains tool bar for assignment operator :=, global

Evaluation Toolbar The Evaluation Toolbar contains tool bar for assignment operator :=,
definition operator , and the evaluation command =.
Notice in Mathcad , equal sign = is used as evaluation command that tells Mathcad to carry out the computation.
There are two execution mode, one is automatic, in this mode, Mathcad carries out execution when we press [=]; another is manual, in this mode you will have first press [=] followed by [F9] key to let Mathcad to carry out the execution.
The manual mode is desirable when we want to delay the execution and don’t want to be bothered by many error message Mathcad would produce in automatic mode. You turn off/on the automatic mode from the Math menu on the Main Menu bar.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 8

Слайд 9

Evaluation

In the automatic execution mode, after we type 3+2= we get
3

Evaluation In the automatic execution mode, after we type 3+2= we get
+ 2 = 5.
If we want to assign 2 to variable x we will have to type x:2 , which will be displayed as x:=2 in the work area. Therefore, a mathematical expression
y = x + 3
will be enter differently according to the meaning of the expression.
If you want sign := to appear press [Shift] and then press [:]
Entering it as y:x+3 when x value has been defined before this expression and you want y to be the value of x plus 3, i.e. assign the value of x + 3 to y.
Entering it as y(x):x+3 when we want to set y as a function of x defined as x + 3.
Entering it as y[Ctrl]=x+3 when we like to compare y and x + 3, i.e. to logically determine if y has the same value as x+3; here ‘[Ctrl]=’ mean enter ‘=’ while hold the ‘[Ctrl]’ key.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 9

Слайд 10

Boolean Toolbar

We can get the logic equal sign = from the
Boolean

Boolean Toolbar We can get the logic equal sign = from the
Toolbar as shown .
The global assignment operator (shortcut ~ ) is to assign an value (expression) to a variable (a function) so it can be referred in any place of the work area. The following screen shot illustrates the difference between =, :=, =, and ;

Korchak Tatiana Viktorovna «KhAI» Informatics Department 10

Слайд 11

Defining of variables

A variable or a function must be defined before it

Defining of variables A variable or a function must be defined before
is used.
The will give us a leverage to defy this scan order so we can define and use a variable (function) without worrying about the proper order demanded by the Mathcad as illustrated in the following two screen shots. Notice red font indicate a error.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 11

Слайд 12

Calculus Toolbar

The Calculus Toolbar as shown allow us to perform computations

Calculus Toolbar The Calculus Toolbar as shown allow us to perform computations
found in Calculus.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 12

Слайд 13

Arithmetic And Radical Operators

One important concept in entering expression in Mathcad is

Arithmetic And Radical Operators One important concept in entering expression in Mathcad
the place holder. It is a little dark rectangle box . For example, when you type + (addition operator) in any blank area we get .
In the place holders we enter any valid mathematics expression. Mathcad uses arithmetic operators in the same way as standard calculator. The following table list the keystrokes for arithmetic operators, root operators, and subscription (indexing).

Korchak Tatiana Viktorovna «KhAI» Informatics Department 13

Слайд 14

Assignment And Relational Operators

Korchak Tatiana Viktorovna «KhAI» Informatics Department 14

Assignment And Relational Operators Korchak Tatiana Viktorovna «KhAI» Informatics Department 14

Слайд 15

Calculus And Matrix Keystrokes

Korchak Tatiana Viktorovna «KhAI» Informatics Department 15

Calculus And Matrix Keystrokes Korchak Tatiana Viktorovna «KhAI» Informatics Department 15

Слайд 16

Different meanings for =

Korchak Tatiana Viktorovna «KhAI» Informatics Department 16

Mathcad uses =

Different meanings for = Korchak Tatiana Viktorovna «KhAI» Informatics Department 16 Mathcad
as execution command, that is to tell Mathcad to compute the value. It uses (:=) for assignment and definition, and (boldface =) for logic equal.

Слайд 17

General Editing Methods

As in most window based text editors, we can use

General Editing Methods As in most window based text editors, we can
mouse to choose input starting point by moving mouse cursor to a desired point and click the right button.
Every Mathcad equation, text paragraph, and plot in a worksheet is a separate object called region. We can also use mouse to select several regions and drag them around.
To select one region, just move mouse over the region and click. A light bounding box will appear, which indicates the region is selected, as in the following screen shot for a selected math region.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 17

Слайд 18

Define Variables

There are two type variables in Mathcad, a normal variable which

Define Variables There are two type variables in Mathcad, a normal variable
holds one value, and a range variable which, like vectors in math, holds multiple values. The variable name is any sequence of letters and digits that begin with a letter such as a; a1; bx12; etc. To define a normal variable you just click any clear region and type the name of the variable followed by :, which bring up the assignment operator :=, and followed by the numeral value.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 18

For example the keystrokes x:23 defines a variable named x whose value is 23, which is displayed as a := 23 in the worksheet.
To defined a range variable, usually an index variable, we use ‘;’, semicolon. The following table list several type of range variables:

Слайд 19

Define and graph Functions

To define a function in Mathcad is same as

Define and graph Functions To define a function in Mathcad is same
to write down a function in a piece of paper. You just type in the function name, followed by open parenthesis ( and the argument(s) that are separated by comma(,) and the close parenthesis ), then type the assignment operator – colon(:) followed by typing in the expression(formula) for the given function.
For example to define a function f(x) = 4x + 3, we would type f(x):4x+3, notice you don’t need to type the multiplication operator between 4 and x as Mathcad automatically insert it for you. However, if you want to define a function such as f(t; y) = 3t + ty, you would need to specifically type in the multiplication operator *, as shown,
f(t,y):3t^2+t*y
also notice that we should type no space between terms as Mathcad will insert it for us when we type in a arithmetic operator. When typing in an expression involving more than one terms, space character serves as grouping operator. Hitting space bar will cause Mathcad to group term together. This is useful when entering expression like
here we will need to group x + 3 together by
press space bar before we type the division operator(/). Another usage of space is to move out the superscript or subscript mode.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 19

Слайд 20

The usage of space

The following table gives several example to illustrate the

The usage of space The following table gives several example to illustrate
usage of space. Notice, in order to move out of the denominator, we need to press space too.

Korchak Tatiana Viktorovna «KhAI» Informatics Department 20

Слайд 21

Value of a function

To find value of a function, such as f(3),

Value of a function To find value of a function, such as
or h(4; 2):
define the function f and g (i.e. f(x):=x – 4 g(y1,y2) = 3*y1+y2 );
type f(3)= or h(4,2)=.
To graph a function of one variable after defining it:
click any blank space after the definition of the function;
type @ or from Insert menu choose to insert xy-plot.
A box will appear with several place holders. Enter the function name on the left center place holder and the variable on the bottom center place holder.
If the variable name is not used before, the Mathcad will display a graph over default interval [-10, 10].

Korchak Tatiana Viktorovna «KhAI» Informatics Department 21

Имя файла: Introduction-to-Mathcad-Theoretical-and-Practical-training.pptx
Количество просмотров: 132
Количество скачиваний: 0