MathCAD.page16

MathCAD.page16 - 16 1. INTRODUCTION TO Mathcad the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
16 1. INTRODUCTION TO Mathcad the assignment operator :=, and followed by the numeral value. 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, Variable Type Display Remark a a:1;10 a := 1 .. 10 a takes values 1, 2, ... , 10 ax ax:1,3;10 ax := 1 , 3 .. 10 ax takes values 1, 3, ... , 10, incremented by 2. Notice the user of ’,’ ab1 ab1:0,.1;10 ab 1 := 0 ,. 1 .. 10 ab1 takes values 0, 0.1,0.2, ... , 10, incremented by 0.1. a1e a1e:10,9;1 a 1 e := 10 , 9 .. 1 a1e takes values 10, 9, ... , 1, decremented by 1. ac ac:10,9.8;1 ac := 10 , 9 . 8 .. 1 ac takes values 10, 9.8,9.6, ... , 1, decremented by 0.2. Table 5. Mathcad Example of Range Variables 2.2.2. Define and graph Functions. To define a function in Mathcad is same as to write down a function in a piece of paper. You just
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online