lcm(Poly1, Poly2,…)
Example:
lcm(x^2-2*x+1,x^3-1) gives (x-1)*(x^3-1)
Polynomial – Create
Poly to Coef
Given a polynomial, returns a vector containing the coeicients of the polynomial. With a variable as second
argument, returns the coeicients of a polynomial with respect to the variable. With a list of variables as the
second argument, returns the internal format of the polynomial.
symb2poly(Expr,[Var]) or symb2poly(Expr, {Var1, Var2,…})
Example:
symb2poly(x*3+2.1) returns [3 2.1]
Coef to Poly
With one vector as argument, returns a polynomial in x with coeicients (in decreasing order) obtained from
the argument vector. With a variable as second argument, returns a similar polynomial in that variable.
poly2symb(Vector, [Var]))
Example:
poly2symb([1,2,3],x) returns (x+2)*x+3
Roots to Coef
Returns a vector containing the coeicients (in decreasing order) of the univariate polynomial whose roots
are specied in the argument vector.
pcoef(List)
Example:
pcoeff({1,0,0,0,1}) returns [1 -2 1 0 0 0]
Roots to Poly
Takes as argument a vector. The vector contains each root or pole of a rational function. Each root or pole is
followed by its order, with poles having negative order. Returns the rational function in x that has the roots
and poles (with their orders) specied in the argument vector.
fcoeff(Vector) where Vector has the form [Root1, Order1, Root2, Order2, …])
Example:
fcoeff([1,2,0,1,3,-1]) returns (x-1)^2*x*(x-3)^- 1
Random
Returns a vector of the coeicients of a polynomial of degree Integer and where the coeicients are
random integers in the range –99 through 99 with uniform distribution or in an interval
specied by
Interval. Use with poly2symbol to create a random polynomial in any variable.
randpoly(Integer, Interval, [Dist]), where Interval is of the form Real1..Real2.
CAS menu 381
Komentarze do niniejszej Instrukcji