
rowSwap
Given a matrix and two integers, returns the matrix obtained from the given matrix after swapping the two
rows indicated by the two integers.
rowSwap(Matrix,Integer1,Integer2)
Example:
rowSwap returns
rsolve
Given an expression dening a recurrence relation, a variable, and an initial condition, returns the closed form
solution (if possible) of the recurrent sequence. Given three lists, each containing multiple items of the above
nature, solves the system of recurrent sequences.
rsolve(Expr, Var, Condition) or rsolve(List1, List2, List3)
Example:
rsolve(u(n+1)=2*u(n)+n,u(n),u(0)=1) returns [-n+2*2
n
-1]
select
Given a test expression in a single variable and a list or vector, tests each element in the list or vector and
returns a list or vector containing the elements that satisfy the test.
select(Test, List) or select(Test, Vector)
Example:
select(x→x>=5,[1,2,6,7]) returns [6,7]
seq
Given an expression, a variable dened over an interval, and a step value, returns a vector containing the
sequence obtained when the expression is evaluated within the given interval using the given step. If no step
is provided, the step used is 1.
seq(Expr, Var=Interval, [Step])
Example:
seq(2
k
,k=0..8) gives [1,2,4,8,16,32,64,128,256]
seqsolve
Similar to rsolve. Given an expression dening a recurrence relation in terms of n and/or the previous term (x),
followed by a vector of variables and an initial condition for x (the 0th term), returns the closed form solution
(if possible) for the recurrent sequence. Given three lists, each containing multiple items of the above nature,
solves the system of recurrent sequences.
seqsolve(Expr, Vector, Condition) or seqsolve(List1, List2, List3)
Example:
seqsolve(2x+n,[x,n],1) gives -n-1+2*2
n
Ctlg menu 457
Kommentare zu diesen Handbüchern