Contents Previous Next Subchapters

Difference Between Successive Elements In Each Column
Syntax coldiff(x)
See Also fordiff

Description
Returns a matrix in which the (i,j)th element contains x(i+1,j) - x(i,j), where x is an integer, real, double-precision, or complex matrix. The return value has the same type and column dimension as x and has one less row.

Example
     x = [seq(4), seq(4)^2]
     coldiff(x)
returns
     {
     [ 1 , 3 ]
     [ 1 , 5 ]
     [ 1 , 7 ]
     }