Page 10-15
The Hilbert matrix has application in numerical curve fitting by the method of
linear squares.
A program to build a matrix out of a number of lists
In this section we provide a couple of UserRPL programs to build a matrix out
of a number of lists of objects. The lists may represent columns of the matrix
(program
@CRMC
) or rows of the matrix (program
@CRMR
). The programs are
entered with the calculator set to RPN mode, and the instructions for the
keystrokes are given for system flag 117 set to SOFT menus. This section is
intended for you to practice accessing programming functions in the calculator.
The programs are listed below showing, in the left-hand side, the keystrokes
necessary to enter the program steps, and, in the right-hand side, the
characters entered in the display as you perform those keystrokes. First, we
present the steps necessary to produce program CRMC.
Lists represent columns of the matrix
The program
@CRMC
allows you to put together a p
×
n matrix (i.e., p rows, n
columns) out of n lists of p elements each. To create the program enter the
following keystrokes:
Keystroke sequence:
Produces:
‚ å
«
„°
@)STACK!
@@DUP@
DUP
‚ é #
~
„n
n
‚ å
<<
1„°
@)STACK!
@SWAP
1
SWAP
„°
@)BRCH!
@)FOR@!
@FOR@
FOR
~„j
j
„°
@)TYPE
OBJ
OBJ
ARRY@
ARRY
„°
@)BRCH!
@)@IF@@
@@IF@@
IF
~
„j#
j
~
„n
n
„°
@)TEST! @@@<@@@
<
„°
@)BRCH!
@)@IF@
@THEN
THEN
~
„j #1+
j 1
+
„°
@)STACK!
L
@ROLL
ROLL
„°
@)BRCH!
@)@IF@
@END
END
Содержание 49g+
Страница 1: ...hp 49g graphing calculator user s guide H Edition 4 HP part number F2228 90006 ...
Страница 197: ...Page 5 30 LIN LNCOLLECT POWEREXPAND SIMPLIFY ...
Страница 377: ...Page 11 55 Function KER Function MKISOM ...
Страница 457: ...Page 13 26 In the right hand side figure above we are using the line editor to see the series expansion in detail ...
Страница 775: ...Page 26 10 the location of the backup battery in the top compartment at the back of the calculator ...
Страница 838: ...Page L 5 ...