Manual

Functions and commands 407
polygonscatterplot Used in the Geometry app Symbolic view. Given an n × m matrix,
draws and connects the points (xk, yk), where xk is the element in
row k and column 1, and yk is the element in row k and column j
(with j fixed for k=1 to n rows). Thus, each column pairing
generates its own figure, resulting in m-– figures.
polygonscatterplot(Matrix)
Example:
polygonscatterplot draws two figures, each
with three points connected by segments.
polynomial_
regression
Given a set of points defined by two lists, and a positive
integer n, returns a vector containing the coefficients (a
n
, a
n–1
... a
0
) of y = a
n
*x
n
+ a
n–1
x
n–1
+ ... a
1
*x + a
0
), the nth order
polynomial which best approximates the given points.
polynomial_regression(List1, List2, Integer)
Example:
polynomial_regression({1, 2, 3, 4}, {1, 4, 9,
16},3) returns [0 1 0 0]
POLYROOT Returns the zeros of the polynomial given as argument (either
as a symbolic expression or as a vector of coefficients).
POLYROOT(Poly) or POLYROOT(Vector)
Example:
POLYROOT([1 0 -1]) returns [-1 1]
potential Returns a function whose gradient is the vector field defined
by a vector and a vector of variables.
potential(Vector1, Vector2)
Example:
potential([2*x*y+3,x^2-4*z,-4*y],[x,y,z])
returns x
2
*y+3*x-4*y*z
123
201
1 23




