Computer Algebra Commands 4-71
Result: {[1, 0], [[1, 2][0, 1]]}
SYST2MAT
Type: Command
Description: Converts a system of linear equations in algebraic form to matrix form.
Access: !Ú MATRX, Matrices, !Ø LINEAR SYSTEMS
Input: Level 2/Argument 1: A vector containing a system of linear equations. An expression with no
equal sign is treated as an equation setting the expression equal to zero.
Level 1/Argument 2: A vector whose elements are the system’s variables. The variables must
not exist in the current path.
Output: A matrix that represents the system of linear equations.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example: Convert this system to a matrix:
X – Y = 0
2X + Y = 5
Command: SYST2MAT([X-Y, 2*X+Y=5],[X, Y])
Result:
1 1
0
2 1 5
TABVAL
Type: Command
Description: For an expression and a list of values, stores the expression in EQ, and returns the results of
substituting the values for the current variable in the expression.
Access: P
GRAPH L, !ÖGRAPHL
Input: Level 2/Argument 1: An algebraic expression in terms of the current variable.
Level 1/Argument 2: A list of values for which the expression is to be evaluated.
Output: Level 2/Item 1: The algebraic expression.
Level 1/Item 2: A list containing two lists: a list of the values and a list of the corresponding
results.
Flags: Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example: Substitute 1, 2, and 3 into .
Command:
TABVAL(X^2+1,{1, 2, 3})
Result: { X^2+1,{{1, 2, 3},{2, 5, 10}}}
TABVAR
Type: Command
Description: For a function of the current variable, with a rational derivative, computes the variation table,
that is the turning points of the function and where the function is increasing or decreasing.
Access: PGRAPH L, !ÖGRAPH L
Input: An expression in terms of the current variable, which has a rational derivative.
Output: Level 3/Item 1: The original rational function.
Level 2/Item 2: A list of two lists. The first list indicates the variation of the function (where
it is increasing or decreasing) in terms of the independent variable. The second list indicates
2
1+