Reference Guide
Full Command and Function Reference 3-67
command ENDSUB. Both of these commands return an Undefined Local Name error if
executed when DOSUBS is not active.
DOSUBS returns the Invalid User Function error if the object at level 1/argument 3 is a user
program that does not contain only one command and does not have a user-defined function
structure. DOSUBS also returns the Wrong Argument Count error if the object at level
1/argument 3 is a command that does not accept 1 to 5 arguments of specific types (DUP, ROT,
or →LIST, for example).
Access: !°
LIST PROCEDURES DOSUBS
( °is the left-shift of the Nkey).
Input/Output:
Level 3/Argument 1 Level 2/Argument 2 Level 1/Argument 3 Level 1/Item 1
{ list }
1
n
« program »
→
{ list }
2
{ list }
1
n
command
→
{ list }
2
{ list }
1
n
name
→
{ list }
2
{ list }
1
« program »
→
{ list }
2
{ list }
1
command
→
{ list }
2
{ list }
1
name
→
{ list }
2
Example 1:
{ A B C D E } « - » DOSUBS
returns
{ 'A-B' 'B-C' 'C-D' 'D-E' }
.
Example 2:
{ A B C } 2 « DUP * * » DOSUBS
returns
{ 'A*(B*B)' 'B*(C*C)' }
.
Example 3: Entering
{ 1 2 3 4 5 } « → a b
« CASE 'NSUB==1' THEN a END
'NSUB==ENDSUB' THEN b END
'a+b' EVAL END » » DOSUBS
returns
{ 1 5 7 5 }
.
See also: DOLIST, ENDSUB, NSUB, STREAM
DOT
Type: Command
Description: Dot Product Command: Returns the dot product A•B of two arrays A and B, calculated as the
sum of the products of the corresponding elements of the two arrays.
Both arrays must have the same dimensions.
Some authorities define the dot product of two complex arrays as the sum of the products of the
conjugated elements of one array with their corresponding elements from the other array. The
calculator uses the ordinary products without conjugation. If you prefer the alternative definition,
apply CONJ to one array before using DOT.
Access: !Ø L
VECTOR DOT
( Ø is the left-shift of the 5key).
!´
VECTOR DOT
( ´ is the left-shift of the Pkey).
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
[ array A ]
[ array B ]
→
x
Example:
[ 1 2 3 ][ 4 5 6 ] DOT
returns
32
(by calculating 1 x 4 + 2 x 5 + 3 x 6).
See also: CNRM, CROSS, DET, RNRM