
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
Содержание 48GII
Страница 1: ...hp 48gII graphing calculator user s guide H Edition 4 HP part number F2226 90020 ...
Страница 162: ...Page 3 37 Define this function by any of the means presented above and check that g 3 3 g 1 0 g 1 0 g 3 9 ...
Страница 201: ...Page 5 30 LIN LNCOLLECT POWEREXPAND SIMPLIFY ...
Страница 381: ...Page 11 55 Function KER Function MKISOM ...
Страница 461: ...Page 13 26 In the right hand side figure above we are using the line editor to see the series expansion in detail ...
Страница 777: ...Page 26 8 ...
Страница 840: ...Page L 5 ...