Input:
An array of the form [Root 1, multiplicity/pole 1, Root 2, multiplicity/pole 2, . . .] The
multiplicity/pole must be an integer. A positive number signifies a multiplicity. A negative
number signifies a pole.
Output:
The rational polynomial with the specified roots and multiplicities/poles. The polynomial is
written using the current independent variable.
Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example:
Find the rational polynomial corresponding to the following set of roots and poles:
1, 2, 3, –1
Command:
FCOEF([1,2,3,-1])
Result:
(X-1)^2/(X-3)
See also:
FROOTS
FDISTRIB
Type:
Command
Description:
Performs a full distribution of multiplication and division with respect to addition and
subtraction in a single step.
!Ú
Access:
Input:
An expression.
Output:
An equivalent expression that results from fully applying the distributive property of
multiplication and division over addition and subtraction.
Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example:
Expand
Command:
FDISTRIB((X+1)*(X-1)*(X+2))
Result:
X*(X*X)+2*(X*X)+(-(X*(1*X))+-(2*(1*X)))+ (X*(X*1)+2*(X*1)+
(-(X*(1*1))+-(2*(1*1))))
See also:
DISTRIB
FOURIER
Type:
Function
Description:
Returns the n
be in the CAS directory, CASDIR, or in current path, and set to hold L, the period of the
input function. The expression is expanded in terms of the current CAS variable.
Calculus !Ö
Access:
Input:
Level 1/Argument 2: An expression in terms of the current variable
Level 2/Argument 1: The number, n, of the coefficient to return.
Output:
The nth Fourier coefficient 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).
Complex mode must be set, that is, flag –103 must be set.
Example:
Obtain the Fourier coefficient as below, with the default value of 2π in the
CASDIR,
4-32 Computer Algebra Commands
REWRITE
:
(X+1)(X-1)(X+2)
coefficient of a complex Fourier series expansion. The
th
. &
DERIV
INTEG
and simplify it with
EXPAND
.
:
variable must
PERIOD
variable in
PERIOD