
shift
Given a list or vector and an integer n, moves the elements of that list or vector either n places to the left, if
n>0, or n places to the right, if n<0. If no integer is provided, n=-1 by default and all elements are moved one
place to the left.
Elements that move o the list to one side are replaced by 0 on the opposite side.
Given a rst integer and a second integer n, moves the rst integer bitwise either n bits to the left, if n>0, or n
bits to the right, if n<0.
shift(list, integer) or shift(vector, integer) or shift(integer1, integer2)
Example:
shift({1,2,3},2) returns {3, 0, 0}
shift_phase
Returns the result of applying a phase shift of pi/2 to a trigonometric expression.
shift_phase(Expr)
Example:
shift_phase(sin(x)) gives -cos((pi+2*x)/2)
signature
Returns the signature of a permutation.
signature(Vector)
Example:
signature([2 1 4 5 3]) returns –1
simult
Returns the solution to a system of linear equations or several systems of linear equations presented in
matrix form. In the case of one system of linear equations, takes a matrix of coeicients and a column matrix
of constants, and returns the column matrix of the solution.
simult(Matrix1, Matrix2)
Example:
simult returns
sincos
Returns an expression with the complex exponentials rewritten in terms of sin and cos.
sincos(Expr)
Example:
sincos(exp(i*x)) gives cos(x)+(i)*sin(x)
458 Chapter 22 Functions and commands
Comentários a estes Manuais