Learn R Programming

caracas (version 2.0.0)

diff_mat: Difference matrix

Description

Difference matrix

Usage

diff_mat(N, l = "-1", d = 1)

Arguments

N

Number of rows (and columns)

l

Value / symbol below main diagonal

d

Value / symbol on main diagonal

Examples

Run this code
if (has_sympy()){
  Dm <- diff_mat(4)
  Dm
  y <- vector_sym(4, "y")
  Dm %*% y
}

Run the code above in your browser using DataLab