Functions and commands 381
convexhull Returns the convex hull of a list of two-dimensional points.
convexhull(Lst)
Example:
convexhull(0,1,1+i,1+2i,-1-i,1-3i,-2+i) gives
1-3*i,1+2*i,-2+i,-1-i
CopyVar Copies the first variable into the second variable without
evaluation.
CopyVar(Var1,Var2)
correlation Returns the correlation of the elements of a list or matrix.
correlation(Lst||Mtrx)
Example:
correlation([[1,2],[1,1],[4,7]]) gives 33/
(6*sqrt(31))
COS Cosine: cosx.
COS(value)
count Applies a function to the elements in a list or matrix and
returns their sum.
count(Fnc,(Lst||Mtrx))
Example:
count((x)->x,[2,12,45,3,7,78]) gives 147
covariance Returns the covariance of the elements in a list or matrix.
covariance(Lst||Mtrx)
Example:
covariance([[1,2],[1,1],[4,7]]) gives 11/3
covariance_correl
atio
Returns the list of the covariance and the correlation of the
elements of a list or matrix.
covariance_correlation(Lst||Mtrx)
Example:
covariance_correlation([[1,2],[1,1],[4,7]])
gives [11/3,33/(6*sqrt(31))]