
Functions and commands 181
Example:
crationalroot(2*x^3+(-5-7*i)*x^2+
(-4+14*i)*x+8-4*i)
returns
cumSum Accepts as argument either a list or a vector and returns a list
or vector whose elements are the cumulative sum of the
original argument.
cumSum(List) or cumSum(Vector)
Example:
cumSum([0,1,2,3,4]) returns [0,1,3,6,10]
delcols Given a matrix and an integer n, deletes the nth column from
the matrix and returns the result. If an interval of two integers
is used instead of a single integer, deletes all columns in the
interval and returns the result.
delcols(Matrix, Integer) or delcols(Matrix,
Intg1..Intg2)
Example:
delcols returns
delrows Given a matrix and an integer n, deletes the nth row from the
matrix and returns the result. If an interval of two integers is
used instead of a single integer, deletes all rows in the interval
and returns the result.
delrows(Matrix, Integer) or delrows(Matrix,
Intg1..Intg2)
Example:
delrows returns
deltalist Returns the list of the differences between consecutive terms in
the original list.
deltalist(Lst)
Example:
deltalist([1,4,8,9]) gives [3,4,1]
3 i+
2
-----------
2 i⋅ 1 i+
Comentarios a estos manuales