4-74 Computer Algebra Commands
TCOLLECT
Type: Command
Description: Linearizes products in a trigonometric expression by collecting sine and cosine terms, and by
combining sine and cosine terms of the same argument.
Access: Trigonometry, …ÑL
Input: An expression with trigonometric terms.
Output: The simplified 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).
Example: Collect terms in the expression:
2
sin
2
cos
+
Command: TCOLLECT(SIN(2*X)+COS(2*X))
Result: √2*COS(2*X-π/4)
See also: TEXPAND, TLIN
TESTS
Type: Command
Description: Displays a menu or list containing the ASSUME and UNASSUME commands, and tests that
can be included in algebraic expressions.
Access: Catalog, …µ
Flags: If the CHOOSE boxes flag is clear (flag –117 clear), displays the operations as a numbered
list. If the flag is set, displays the operations as a menu of function keys.
See also: ALGB, ARIT, CONSTANTS, DIFF, EXP&LN, INTEGER, MAIN, MATHS, MATR,
MODULAR, POLYNOMIAL, REWRITE, TRIGO
TEXPAND
Type: Command
Description: Expands transcendental functions.
Access: !Ð, P
ALG, PTRIG, …×L, …ÑL, PLEXPLN
Input: An expression.
Output: The transformation of the 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).
Example: Expand the following expression:
ln(sin(x+y))
Command:
TEXPAND(LN(SIN(X+Y)))
Result: LN(COS(Y)*SIN(X)+SIN(Y)* COS(X))
See also: TCOLLECT, TLIN
TLIN
Type: Command