Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Radians mode must be set (flag –17 set).
Example:
Reduce the polynomial:
x
y – xy – 1
2
with respect to the Grœbner basis (obtained in the example for GBASIS):
x, 2y
– 1
3
Command:
GREDUCE(X^2*Y–X*Y–1, [X,2*Y^3–1], [X,Y])
Result:
-1
Note this is the remainder of the input polynomial modulo the term x in the Grœbner basis
See also:
GBASIS
HADAMARD
Type:
Command
Description:
Performs an element by element multiplication of two matrices (Hadamard product).
Matrices, !Ø
Access:
Input:
Level 2/Argument 1: Matrix 1.
Level 1/Argument 2: Matrix 2.
The matrices must have the same order.
Output:
The matrix representing the result of the multiplication.
Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example:
Find the Hadamard product of the following two matrices:
3 1
– 2
0 1 4
Command:
HADAMARD([[3,-1,2][0,1,4]],[2,3,0][1,5,2]])
Result:
[[6,-3,0][0,5,8]]
HALFTAN
Type:
Command
Description:
Transforms an expression by replacing sin(x), cos(x) and tan(x) subexpressions with tan(x/2)
terms.
Trigonometry, ...Ñor P
Access:
Input:
An expression
Output:
The transformed expression.
Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Radians mode must be set (flag –17 set).
See also:
TAN2CS2, TAN2SC2
HELP
Type:
Command
Description:
Similar to CASCMD, displays a list of CAS operations. Selecting one with OK displays help
for it, an example of the operation, and the option to copy the example to the command line.
More details are given in Appendix C and Appendix H of the User's Guide.
4-36 Computer Algebra Commands
OPERATIONS
2 3 0
1 5 2
and
TRIG
L