Expression1 | Real2 | → | List3 |
The OBGET operation is used to retrieve a portion of an expression and return it as an item in a list. The real argument identifies the component in the expression to retrieve. An expression is a sequence of real numbers, complex numbers, symbols and operations. If you read your expression from left to right, the left most item in that sequence is 1 and each item after that is the next number in the sequence.
So, for the expression 'SIN(X+10)', the components are:
Index | Component |
---|---|
1 | SIN Operation |
2 | Symbol X |
3 | + Operation |
4 | Real Number 10 |
To use OBGET on this expression, you would specify a number from 1 to 4 depending on which component you wanted to retrieve.
If you executed OBGET on index 3 on the above expression, the list { + } would be returned since the third item is the addition operation.