Professional Documents
Culture Documents
The two variables can be obtained from the palette 1 icons and
Subscripted variables
These are used to represent sequences. In the notation un, n is called the subscript of
u.
The keyboard alternative for the palette icon is [ ( left square bracket ) .
For example, u[3 gives u
3
Range variables
Range variables are used to do repeated calculations.
Whereas a conventional variable takes only one value at any given time, a range
variable takes
on a range of values, separated by uniform steps. The definition contains three
numbers which
give the starting value, next value .. and final value of the range.
In this example the range variable i takes the five values 1, 2, 3, 4 and 5.
Define i := 1 , 2 .. 5
The number 1 is the first value taken by the range variable.Display
i =
The number 2 is the second value in the range. 1
The difference between this and the first value is the step size . 2
The final number 5 is the last value in the range. 3
4
Keyboard alternative 5
The keyboard alternative for the palette icon is ; ( semicolon ) .
For example, to define the range variable j above you could type j:0,1;3
ORIGIN := 1
First term of the sequence has subscript 1 ....................................
; type 12
Type n ; click ; type 1,2 ; click
Solution
(B)Mathcad creates an empty graph.The selection box should be on the place holder in
the middle of the horizontal axis. Type n
(C) Now click on the placeholder in the middle of the vertical axis. Put bn on this
(D) Click anywhere outside the graph and Mathcad will calculate and graph the points.
Comments
(B) Choose Format... from the X-Y Plot menu ( or double-click on the graph itself ) .
The Format option box ( titled 'Formatting Currently Selected X-Y Plot' ) appears.
(C) Change the desired settings in the Format option box - see below.
Changing the settings
The trace settings, in the middle of the Format option box, control how each trace (
curve )
will be displayed on the graph. The diagram below shows how to change these
settings to
mark the individual points on the curve with crosses and remove the line.
(C2) Click on the arrow beside the box in the 'Symbol' column to see a drop-down list
of marker types and select x's .
(C3) Click on the arrow beside the box for 'Line' and select none from the list.
(D) That's it ! Finally click the large 'OK' button to see the results.
40
bn 20
0
0 5 10 15
n