powered by
ConvDiffCoef(db, dt)
Output difference equation is of the form b[1] * x_i + b[2] * x_(i-1) + b[3] * x_(i-2)...
db = c(0, 0, 1) # represents f''(t) dt = 0.1 ConvDiffCoef(db, dt)
Run the code above in your browser using DataLab