Vous êtes sur la page 1sur 2

Subscripts

Mathcad has two types of subscripts.


Literal subscripts
CE 445/545 Part of the variable name
Mathcad: entered with a period - e.g., K.r
Mathcad Prime: entered with ctrl+-
Lecture 6 Array subscripts
Matrix Operations in Mathcad Designate a particular element in an array, i.e., in a
vector or matrix.
Entered by typing the left bracket [ - e.g., K[1,1

Distinguishing Subscripts Array Origin


Mathcad: In the text, the rows and columns are
Literal subscripts (the periods) are displayed numbered beginning with 1
when you click on the equation. By default, Mathcad numbers rows and
The cursor groups literal subscripts with the columns beginning with 0
entire variable name. The Mathcad default can be changed in the
The cursor steps down into array subscripts, Tools, Worksheet Options, menu.
and groups the array subscript as a separate Built-in variables tab
variable. Array Origin (ORIGIN)
Mathcad Prime displays the bracket for Mathcad Prime: select the Calculation menu.
array subscripts
3 4

Units Units (cont.)


Mathcad can include units in the calculations. We can:
Including units catches many an error, and Eliminate units from the Mathcad variables, and
It allows flexibility in units (e.g., mixing feet and assume consistent units for every quantity in the
inches) calculations.
However, Mathcad requires consistent units for E.g., kips and inches for U.S. units, or
all elements in a vector or matrix, which is a kN and m for S.I.
problem for bending elements. Or, we can force consistent units by defining a
In that case, the displacement vector contains consistent length unit and:
translations (in inches) and rotations (in radians, Multiplying the moments by the length unit, and
which are dimensionless). Dividing the rotations by the length unit.
5 6

1
Equals Equals
Assignment or definition Boolean equal
Assigns a value to a variable, e.g., E := 30000ksi Equates two symbolic quantities or checks for
Typed : colon equality between two quantities.
Assignment is valid to the right or below that point. Useful in symbolic manipulations and logical tests.
Global assignment or definition (not in Mcad Prime) F = KU
Assigns a value to a variable, e.g., ORIGIN 1
Typed ctrl-=
Typed ~ tilde
Assignment is valid throughout the sheet. Evaluation
Evaluation Evaluates an expression symbolically.
Evaluates a previously defined expression: E = 30000ksi F = KU solve, U K-1F
Typed = equals sign Typed ctrl-. or (not Prime) ctrl+shift-.
7 8

Vous aimerez peut-être aussi