
Functions and commands 179
With two additional complex numbers as third and fourth
arguments, returns a matrix as described for two arguments,
but only for those roots lying in the rectangular region defined
by the diagonal created by the two complex numbers.
complexroot(Poly, Real, [Complex1], [Complex2])
Example:
complexroot(x^3+8, 0.01) returns
This matrix indicates there is 1 complex root at x=–2,
with another root between the two values in the second
row vector and a third root between the two values in the
third row vector.
contains Given a list or vector and an element, returns the index of the
first occurrence of the element in the list or vector; if the
element does not appear in the list or vector, returns 0.
contains((List, Element) or contains(Vector,
Element)
Example:
contains({0,1,2,3},2) returns 3
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(List) or correlation(Matrix)
Example:
correlation returns
count There are two uses for this function, in which first argument is
always a mapping of a variable onto an expression. If the
expression is a function of the variable, the function is applied
to each element in the vector or matrix (the second argument)
and the sum of the results is returned; if the expression is a
2– 1
1017 1782 i⋅–
1024
-----------------------------------------
1026 1773 i⋅–
1024
-----------------------------------------
1
1395 378 i⋅+
512 512 i⋅–
--------------------------------------
189– 702 i⋅+
256 256 i⋅+
---------------------------------------
1
33
631⋅
-------------------
Komentarze do niniejszej Instrukcji