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
Access: | !°LIST PROCEDURES DOSUBS ( °is the |
| ||||
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 |
| { A B C |
|
|
|
| |
Example 1: | D E } « - » DOSUBS returns |
|
|
| ||
| { |
|
|
| ||
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
DOTType: 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: | !Ø LVECTOR DOT | ( Ø is the | |||
| !´VECTOR DOT | ( ´is the | |||
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 |
|
|
| |
|
|
|
|
|
|
Full Command and Function Reference