Error, improper op or subscript selector
Description
Examples
This error occurs when the op command is used to extract an operand that does not exist.
The index must be an integer and must refer to an operand that exists in the expression.
Example 1
In this example, using the op command to extract the 15th operand results in an error.
s ≔ seriessinx, x = 2, 6
s:=sin⁡2+cos⁡2⁢x−2−12⁢sin⁡2⁢x−22−16⁢cos⁡2⁢x−23+124⁢sin⁡2⁢x−24+1120⁢cos⁡2⁢x−25+Ox−26
op15,s
Solution:
Using the nops command, you see that there are only 14 operands.
nopss
14
To access the last element, use the following command:
op14,s
6
Example 2
Again, calling the op command to extract an operand outside the bounds of the list results in an error.
L≔a,b,c,d
L:=a,b,c,d
op5, L
Modify the arguments to the op command to extract an element within the list. Use the nops command to determine the number of operands.
See Also
op and nops
Download Help Document