
revlist
Reverses the order of the elements in a list or vector.
revlist(List) or revlist(Vector)
Example:
revlist([1,2,3]) returns [3,2,1]
romberg
Uses Romberg’s method to return the approximate value of a denite integral.
romberg(Expr, Var, Val1, Val2)
Example:
romberg(exp(x^2),x,0,1) gives 1.46265174591
row
Given a matrix and an integer n, returns the row n of the matrix. Given a matrix and an interval, returns a
vector containing the rows of the matrix indicated by the interval.
row(Matrix, Integer) or row(Matrix, Interval)
Example:
row returns [4 5 6]
rowAdd
Given a matrix and two integers, returns the matrix obtained from the given matrix after the row indicated by
the second integer is replaced by the sum of the rows indicated by the two integers.
rowAdd(Matrix, Integer1, Integer2)
Example:
rowAdd returns
rowDim
Returns the number of rows of a matrix.
rowDim(Matrix)
Example:
rowDim gives 2
456 Chapter 22 Functions and commands
Komentarze do niniejszej Instrukcji